summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2010-12-11 13:08:37 +0000
committerJonny Lamb <jonny.lamb@collabora.co.uk>2010-12-13 10:49:52 +0000
commit282760f3ec8026cd228f838265f1718786b2a73f (patch)
tree5009262624f705ca7907fabe0b3627731d1ad4b9
parentd0122748651ba8390a49fa81cb2ef771720a5645 (diff)
downloadtelepathy-haze-282760f3ec8026cd228f838265f1718786b2a73f.tar.gz
protocol: implement TpBaseProtocol->dup_authentication_types
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--src/protocol.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c
index 9c9cddf..13dc8ae 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -942,6 +942,17 @@ haze_protocol_get_connection_details (TpBaseProtocol *base,
}
}
+static GStrv
+haze_protocol_dup_authentication_types (TpBaseProtocol *base)
+{
+ static const gchar *types[] = {
+ TP_IFACE_CHANNEL_INTERFACE_SASL_AUTHENTICATION,
+ NULL
+ };
+
+ return g_strdupv ((GStrv) types);
+}
+
static void
haze_protocol_class_init (HazeProtocolClass *cls)
{
@@ -955,6 +966,8 @@ haze_protocol_class_init (HazeProtocolClass *cls)
base_class->identify_account = haze_protocol_identify_account;
base_class->get_interfaces = haze_protocol_get_interfaces;
base_class->get_connection_details = haze_protocol_get_connection_details;
+ base_class->dup_authentication_types =
+ haze_protocol_dup_authentication_types;
g_type_class_add_private (cls, sizeof (HazeProtocolPrivate));
object_class->get_property = haze_protocol_get_property;