diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-12-07 16:29:18 +0000 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-12-13 10:48:51 +0000 |
commit | 22c161485383f1c9423c5dc04446010e4d9f029b (patch) | |
tree | 597120af58f26b363bc05239e69b2b2a9fdd9fb1 | |
parent | 8e4558e9ba82cbd298eb87eff1174b05a6bdfc3b (diff) |
protocol: implement TpBaseProtocolClass->dup_authentication_types
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r-- | src/protocol.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c index c8b4c83a5..03eefa7c3 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -346,6 +346,17 @@ get_connection_details (TpBaseProtocol *self, } } +static GStrv +dup_authentication_types (TpBaseProtocol *self) +{ + const gchar * const types[] = { + TP_IFACE_CHANNEL_TYPE_SERVER_TLS_CONNECTION, + TP_IFACE_CHANNEL_INTERFACE_SASL_AUTHENTICATION, + NULL }; + + return g_strdupv ((GStrv) types); +} + static void gabble_jabber_protocol_class_init (GabbleJabberProtocolClass *klass) { @@ -359,6 +370,7 @@ gabble_jabber_protocol_class_init (GabbleJabberProtocolClass *klass) base_class->get_interfaces = get_interfaces; base_class->get_connection_details = get_connection_details; base_class->get_statuses = get_presence_statuses; + base_class->dup_authentication_types = dup_authentication_types; } TpBaseProtocol * |