diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-11-18 18:14:42 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-11-18 18:14:42 +0000 |
commit | b96c4501cca2edda99a94bf3a84165618d53cc92 (patch) | |
tree | 89ffc72f4a5460c3322dc3954144895d37bb5713 /src | |
parent | 4af95b75fc17a251b167208131a51626ae15dec1 (diff) |
tpsip_connection_get_implemented_interfaces: add
Diffstat (limited to 'src')
-rw-r--r-- | src/sip-connection.c | 19 | ||||
-rw-r--r-- | src/sip-connection.h | 2 |
2 files changed, 15 insertions, 6 deletions
diff --git a/src/sip-connection.c b/src/sip-connection.c index bc175cf..d383dfb 100644 --- a/src/sip-connection.c +++ b/src/sip-connection.c @@ -422,15 +422,22 @@ static void tpsip_connection_shut_down (TpBaseConnection *base); static gboolean tpsip_connection_start_connecting (TpBaseConnection *base, GError **error); +static const gchar *interfaces_always_present[] = { + TP_IFACE_CONNECTION_INTERFACE_REQUESTS, + TP_IFACE_CONNECTION_INTERFACE_CONTACTS, + TP_IFACE_CONNECTION_INTERFACE_ALIASING, + NULL }; + +const gchar ** +tpsip_connection_get_implemented_interfaces (void) +{ + /* we don't have any conditionally-implemented interfaces */ + return interfaces_always_present; +} + static void tpsip_connection_class_init (TpsipConnectionClass *klass) { - static const gchar *interfaces_always_present[] = { - TP_IFACE_CONNECTION_INTERFACE_REQUESTS, - TP_IFACE_CONNECTION_INTERFACE_CONTACTS, - TP_IFACE_CONNECTION_INTERFACE_ALIASING, - NULL }; - GObjectClass *object_class = G_OBJECT_CLASS (klass); TpBaseConnectionClass *base_class = (TpBaseConnectionClass *)klass; diff --git a/src/sip-connection.h b/src/sip-connection.h index ac025ca..2280be9 100644 --- a/src/sip-connection.h +++ b/src/sip-connection.h @@ -80,6 +80,8 @@ GType tpsip_connection_get_type (void) G_GNUC_CONST; void tpsip_connection_connect_auth_handler (TpsipConnection *self, TpsipEventTarget *target); +const gchar **tpsip_connection_get_implemented_interfaces (void); + G_END_DECLS #endif /* #ifndef __TPSIP_CONNECTION_H__*/ |