summaryrefslogtreecommitdiff
path: root/telepathy-glib/group-mixin.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-12-10 14:44:02 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-12-10 14:58:51 +0000
commitf6a471ba081b3a95e7bb1aa0ec808d312ad00678 (patch)
tree08b84c927a09c65e586858b0d0c7b5d08f2a6ba5 /telepathy-glib/group-mixin.h
parentabb731f78fc5dc7004d2b8c7a2730b37be7ff02f (diff)
downloadtelepathy-glib-f6a471ba081b3a95e7bb1aa0ec808d312ad00678.tar.gz
TP_HAS_GROUP_MIXIN, TP_HAS_GROUP_MIXIN_CLASS: add
Diffstat (limited to 'telepathy-glib/group-mixin.h')
-rw-r--r--telepathy-glib/group-mixin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/telepathy-glib/group-mixin.h b/telepathy-glib/group-mixin.h
index 772030568..78640fb9f 100644
--- a/telepathy-glib/group-mixin.h
+++ b/telepathy-glib/group-mixin.h
@@ -152,12 +152,14 @@ struct _TpGroupMixin {
#define TP_GROUP_MIXIN_CLASS(o) \
((TpGroupMixinClass *) tp_mixin_offset_cast (o, \
TP_GROUP_MIXIN_CLASS_OFFSET (o)))
+#define TP_HAS_GROUP_MIXIN_CLASS(cls) (TP_GROUP_MIXIN_CLASS_OFFSET (cls) != 0)
#define TP_GROUP_MIXIN_OFFSET_QUARK (tp_group_mixin_get_offset_quark ())
#define TP_GROUP_MIXIN_OFFSET(o) \
tp_mixin_instance_get_offset (o, TP_GROUP_MIXIN_OFFSET_QUARK)
#define TP_GROUP_MIXIN(o) ((TpGroupMixin *) tp_mixin_offset_cast (o, \
TP_GROUP_MIXIN_OFFSET(o)))
+#define TP_HAS_GROUP_MIXIN(o) (TP_GROUP_MIXIN_OFFSET (o) != 0)
GQuark tp_group_mixin_class_get_offset_quark (void);
GQuark tp_group_mixin_get_offset_quark (void);