diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-02-22 16:49:46 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-04-12 11:38:48 +0100 |
commit | 8418fb5504aca4140c956e0962dc31f2d7a20b60 (patch) | |
tree | dc2a2f625498bfea250e17c2c614c9a0f3e267be | |
parent | c6ed9fa480ed859dd7d111f6412b3a43a8cd73ca (diff) |
TP_NUM_DBUS_ERRORS, TP_NUM_CONTACT_FEATURES: add
NUM_TP_CONTACT_FEATURES and NUM_TP_DBUS_ERRORS aren't introspectable.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46470
-rw-r--r-- | docs/reference/telepathy-glib-sections.txt | 2 | ||||
-rw-r--r-- | telepathy-glib/contact.c | 11 | ||||
-rw-r--r-- | telepathy-glib/contact.h | 3 | ||||
-rw-r--r-- | telepathy-glib/proxy.c | 11 | ||||
-rw-r--r-- | telepathy-glib/proxy.h | 3 |
5 files changed, 26 insertions, 4 deletions
diff --git a/docs/reference/telepathy-glib-sections.txt b/docs/reference/telepathy-glib-sections.txt index d5023dcfd..6d0b73cd1 100644 --- a/docs/reference/telepathy-glib-sections.txt +++ b/docs/reference/telepathy-glib-sections.txt @@ -3574,6 +3574,7 @@ tp_proxy_dbus_error_to_gerror TP_DBUS_ERRORS TpDBusError NUM_TP_DBUS_ERRORS +TP_NUM_DBUS_ERRORS TP_TYPE_DBUS_ERROR <SUBSECTION Standard> tp_dbus_error_get_type @@ -4859,6 +4860,7 @@ TpContact TpContactFeature TP_CONTACT_FEATURE_INVALID NUM_TP_CONTACT_FEATURES +TP_NUM_CONTACT_FEATURES TP_TYPE_CONTACT_FEATURE TpConnectionContactsByHandleCb tp_connection_dup_contact_if_possible diff --git a/telepathy-glib/contact.c b/telepathy-glib/contact.c index 3a73a9e0a..35931e4e8 100644 --- a/telepathy-glib/contact.c +++ b/telepathy-glib/contact.c @@ -127,11 +127,20 @@ struct _TpContact { */ /** - * NUM_TP_CONTACT_FEATURES: (skip) + * TP_NUM_CONTACT_FEATURES: * * 1 higher than the highest #TpContactFeature supported by this version of * telepathy-glib. * + * Since: 0.UNRELEASED + */ + +/** + * NUM_TP_CONTACT_FEATURES: (skip) + * + * 1 higher than the highest #TpContactFeature supported by this version of + * telepathy-glib. Use %TP_NUM_CONTACT_FEATURES in new code. + * * Since: 0.7.18 */ diff --git a/telepathy-glib/contact.h b/telepathy-glib/contact.h index cacb13649..1a91a2d46 100644 --- a/telepathy-glib/contact.h +++ b/telepathy-glib/contact.h @@ -67,7 +67,8 @@ typedef enum { TP_CONTACT_FEATURE_CONTACT_GROUPS, TP_CONTACT_FEATURE_CONTACT_BLOCKING, } TpContactFeature; -#define NUM_TP_CONTACT_FEATURES (TP_CONTACT_FEATURE_CONTACT_BLOCKING + 1) +#define TP_NUM_CONTACT_FEATURES (TP_CONTACT_FEATURE_CONTACT_BLOCKING + 1) +#define NUM_TP_CONTACT_FEATURES TP_NUM_CONTACT_FEATURES #define TP_CONTACT_FEATURE_INVALID ((TpContactFeature) -1) /* Basic functionality, always available */ diff --git a/telepathy-glib/proxy.c b/telepathy-glib/proxy.c index 4e8e839b0..61538189a 100644 --- a/telepathy-glib/proxy.c +++ b/telepathy-glib/proxy.c @@ -107,12 +107,21 @@ tp_dbus_errors_quark (void) /** * NUM_TP_DBUS_ERRORS: (skip) * - * 1 more than the highest valid #TpDBusError at the time of compilation + * 1 more than the highest valid #TpDBusError at the time of compilation. + * In new code, use %TP_NUM_DBUS_ERRORS instead. * * Since: 0.7.1 */ /** + * TP_NUM_DBUS_ERRORS: + * + * 1 more than the highest valid #TpDBusError at the time of compilation + * + * Since: 0.UNRELEASED + */ + +/** * TP_TYPE_DBUS_ERROR: * * The #GEnumClass type of a #TpDBusError. diff --git a/telepathy-glib/proxy.h b/telepathy-glib/proxy.h index c170c4a86..ed47bdb18 100644 --- a/telepathy-glib/proxy.h +++ b/telepathy-glib/proxy.h @@ -55,7 +55,8 @@ typedef enum { TP_DBUS_ERROR_CANCELLED = 9, TP_DBUS_ERROR_INCONSISTENT = 10, } TpDBusError; -#define NUM_TP_DBUS_ERRORS (TP_DBUS_ERROR_INCONSISTENT + 1) +#define TP_NUM_DBUS_ERRORS (TP_DBUS_ERROR_INCONSISTENT + 1) +#define NUM_TP_DBUS_ERRORS TP_NUM_DBUS_ERRORS struct _TpProxy { /*<private>*/ |