summaryrefslogtreecommitdiff
path: root/telepathy-glib/base-channel.h
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2012-01-19 12:50:12 +1100
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-01-20 16:37:37 +0100
commit74bd9452523bef1280a708eb31f08b91971bdb1e (patch)
treed46d9360f6f707491b1e723034f48f06afc48087 /telepathy-glib/base-channel.h
parent139a0f63b6d832ddbff78fb507e1f21ff36680be (diff)
downloadtelepathy-glib-74bd9452523bef1280a708eb31f08b91971bdb1e.tar.gz
base-channel: deprecate interfaces class property for get_interfaces() method
With the interfaces class property, programmers writing a concrete class could not chain-up to inherit the interfaces implemented by the base class. Using a get_interfaces() class method, the programmer can simply add the interfaces she is implementing to those of the base class. Furthermore, classes that only implement an interface in specific instances required a subclass that had to be instantiated by the manager. This is no longer required. For backwards compatibility, the base get_interfaces() method returns the value of the interfaces class property.
Diffstat (limited to 'telepathy-glib/base-channel.h')
-rw-r--r--telepathy-glib/base-channel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/telepathy-glib/base-channel.h b/telepathy-glib/base-channel.h
index 1476ddf5f..01669b5f0 100644
--- a/telepathy-glib/base-channel.h
+++ b/telepathy-glib/base-channel.h
@@ -39,6 +39,7 @@ typedef void (*TpBaseChannelCloseFunc) (TpBaseChannel *chan);
typedef void (*TpBaseChannelFillPropertiesFunc) (TpBaseChannel *chan,
GHashTable *properties);
typedef gchar *(*TpBaseChannelGetPathFunc) (TpBaseChannel *chan);
+typedef GPtrArray *(*TpBaseChannelGetInterfacesFunc) (TpBaseChannel *chan);
struct _TpBaseChannelClass
{
@@ -55,9 +56,10 @@ struct _TpBaseChannelClass
TpBaseChannelCloseFunc close;
TpBaseChannelFillPropertiesFunc fill_immutable_properties;
TpBaseChannelGetPathFunc get_object_path_suffix;
+ TpBaseChannelGetInterfacesFunc get_interfaces;
/*< private >*/
- GCallback _reserved[10];
+ GCallback _reserved[9];
};
struct _TpBaseChannel