summaryrefslogtreecommitdiff
path: root/telepathy-glib/util.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-11-06 17:28:25 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-11-06 17:28:25 +0000
commit08481a6f4b42a64625f3c7892ce62658f1f0d37d (patch)
treea153ce2c3d5850289d558214f7850208f9a54570 /telepathy-glib/util.h
parent3f592373fc1114376156198581896ad962478c36 (diff)
downloadtelepathy-glib-08481a6f4b42a64625f3c7892ce62658f1f0d37d.tar.gz
util: add tp_mixin_instance_get_offset, tp_mixin_class_get_offset
These are like the old mixin macros, but if retrieving qdata from the given type fails, they will walk up the inheritance tree all the way to GObject looking for qdata. This is necessary to allow objects with mixins to be subclassed, closing fd.o #15092.
Diffstat (limited to 'telepathy-glib/util.h')
-rw-r--r--telepathy-glib/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/telepathy-glib/util.h b/telepathy-glib/util.h
index bb659783a..dcc07638a 100644
--- a/telepathy-glib/util.h
+++ b/telepathy-glib/util.h
@@ -41,6 +41,8 @@ void tp_g_hash_table_update (GHashTable *target, GHashTable *source,
gboolean tp_strdiff (const gchar *left, const gchar *right);
gpointer tp_mixin_offset_cast (gpointer instance, guint offset);
+guint tp_mixin_instance_get_offset (gpointer instance, GQuark quark);
+guint tp_mixin_class_get_offset (gpointer klass, GQuark quark);
gchar *tp_escape_as_identifier (const gchar *name);