[next] telepathy-glib: add TpBlockableContactList typedef and casting macro
Guillaume Desmottes
gdesmott at kemper.freedesktop.org
Mon May 26 06:16:26 PDT 2014
Module: telepathy-glib
Branch: next
Commit: f869ec3ac7c634c204e36cea6ffed6bed6387664
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=f869ec3ac7c634c204e36cea6ffed6bed6387664
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Tue May 20 10:59:01 2014 +0200
add TpBlockableContactList typedef and casting macro
https://bugs.freedesktop.org/show_bug.cgi?id=77772
---
docs/reference/telepathy-glib/telepathy-glib-sections.txt | 2 ++
telepathy-glib/base-contact-list.c | 9 +++++++++
telepathy-glib/base-contact-list.h | 6 ++++++
3 files changed, 17 insertions(+)
diff --git a/docs/reference/telepathy-glib/telepathy-glib-sections.txt b/docs/reference/telepathy-glib/telepathy-glib-sections.txt
index 29354a5..78cfa41 100644
--- a/docs/reference/telepathy-glib/telepathy-glib-sections.txt
+++ b/docs/reference/telepathy-glib/telepathy-glib-sections.txt
@@ -4971,6 +4971,7 @@ tp_base_contact_list_get_group_storage
<SUBSECTION blocking>
TP_TYPE_BLOCKABLE_CONTACT_LIST
TpBlockableContactListInterface
+TpBlockableContactList
TpBaseContactListBlockContactsWithAbuseFunc
tp_base_contact_list_can_block
tp_base_contact_list_is_blocked
@@ -4996,6 +4997,7 @@ TP_IS_MUTABLE_CONTACT_LIST
TP_MUTABLE_CONTACT_LIST_GET_INTERFACE
tp_mutable_contact_list_get_type
TP_IS_BLOCKABLE_CONTACT_LIST
+TP_BLOCKABLE_CONTACT_LIST
TP_BLOCKABLE_CONTACT_LIST_GET_INTERFACE
tp_blockable_contact_list_get_type
TP_IS_CONTACT_GROUP_LIST
diff --git a/telepathy-glib/base-contact-list.c b/telepathy-glib/base-contact-list.c
index c8831d5..bd8e554 100644
--- a/telepathy-glib/base-contact-list.c
+++ b/telepathy-glib/base-contact-list.c
@@ -379,6 +379,15 @@ G_DEFINE_INTERFACE (TpMutableContactList, tp_mutable_contact_list,
* Since: 0.13.0
*/
+/**
+ * TpBlockableContactList:
+ *
+ * Opaque structure representing an object implementing
+ * TpBlockableContactListInterface.
+ *
+ * Since: UNRELEASED
+ */
+
G_DEFINE_INTERFACE (TpBlockableContactList, tp_blockable_contact_list,
TP_TYPE_BASE_CONTACT_LIST)
diff --git a/telepathy-glib/base-contact-list.h b/telepathy-glib/base-contact-list.h
index cb403d9..fe38696 100644
--- a/telepathy-glib/base-contact-list.h
+++ b/telepathy-glib/base-contact-list.h
@@ -290,9 +290,15 @@ GType tp_blockable_contact_list_get_type (void) G_GNUC_CONST;
(G_TYPE_INSTANCE_GET_INTERFACE ((obj), \
TP_TYPE_BLOCKABLE_CONTACT_LIST, TpBlockableContactListInterface))
+#define TP_BLOCKABLE_CONTACT_LIST(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), TP_TYPE_BLOCKABLE_CONTACT_LIST, \
+ TpBlockableContactList))
+
typedef struct _TpBlockableContactListInterface
TpBlockableContactListInterface;
+typedef struct _TpBlockableContactList TpBlockableContactList;
+
void tp_base_contact_list_contact_blocking_changed (
TpBaseContactList *self,
TpHandleSet *changed);
More information about the telepathy-commits
mailing list