[next] telepathy-glib: add TpMutableContactGroupList 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: c549e7ec725a3ffb37fb682b1ff61506be18a9b5
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=c549e7ec725a3ffb37fb682b1ff61506be18a9b5

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Tue May 20 10:59:01 2014 +0200

add TpMutableContactGroupList 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 c963315..2bf0a02 100644
--- a/docs/reference/telepathy-glib/telepathy-glib-sections.txt
+++ b/docs/reference/telepathy-glib/telepathy-glib-sections.txt
@@ -4950,6 +4950,7 @@ tp_contact_group_list_groups_removed
 tp_contact_group_list_has_disjoint_groups
 <SUBSECTION mutable-groups>
 TP_TYPE_MUTABLE_CONTACT_GROUP_LIST
+TpMutableContactGroupList
 TpMutableContactGroupListInterface
 TpBaseContactListSetContactGroupsFunc
 tp_base_contact_list_set_contact_groups_async
@@ -5013,6 +5014,7 @@ tp_contact_group_list_get_type
 TP_IS_MUTABLE_CONTACT_GROUP_LIST
 TP_MUTABLE_CONTACT_GROUP_LIST_GET_INTERFACE
 tp_mutable_contact_group_list_get_type
+TP_MUTABLE_CONTACT_GROUP_LIST
 </SECTION>
 
 <SECTION>
diff --git a/telepathy-glib/base-contact-list.c b/telepathy-glib/base-contact-list.c
index 41865fa..99ca4a6 100644
--- a/telepathy-glib/base-contact-list.c
+++ b/telepathy-glib/base-contact-list.c
@@ -540,6 +540,15 @@ G_DEFINE_INTERFACE (TpContactGroupList, tp_contact_group_list,
  * Since: 0.13.0
  */
 
+/**
+ * TpMutableContactGroupList:
+ *
+ * Opaque structure representing an object implementing
+ * TpMutableContactGroupListInterface.
+ *
+ * Since: UNRELEASED
+ */
+
 G_DEFINE_INTERFACE (TpMutableContactGroupList, tp_mutable_contact_group_list,
     TP_TYPE_CONTACT_GROUP_LIST)
 
diff --git a/telepathy-glib/base-contact-list.h b/telepathy-glib/base-contact-list.h
index d3c0608..a9e26f9 100644
--- a/telepathy-glib/base-contact-list.h
+++ b/telepathy-glib/base-contact-list.h
@@ -491,6 +491,8 @@ struct _TpContactGroupListInterface {
 
 /* ---- Implemented by subclasses for mutable ContactGroups ---- */
 
+typedef struct _TpMutableContactGroupList TpMutableContactGroupList;
+
 typedef guint (*TpBaseContactListUIntFunc) (
     TpBaseContactList *self);
 
@@ -597,6 +599,10 @@ GType tp_mutable_contact_group_list_get_type (void) G_GNUC_CONST;
   (G_TYPE_INSTANCE_GET_INTERFACE ((obj), \
   TP_TYPE_MUTABLE_CONTACT_GROUP_LIST, TpMutableContactGroupListInterface))
 
+#define TP_MUTABLE_CONTACT_GROUP_LIST(obj) \
+  (G_TYPE_CHECK_INSTANCE_CAST ((obj), TP_TYPE_MUTABLE_CONTACT_GROUP_LIST, \
+  TpMutableContactGroupList))
+
 typedef struct _TpMutableContactGroupListInterface
     TpMutableContactGroupListInterface;
 



More information about the telepathy-commits mailing list