summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2010-12-15 16:17:55 +0000
committerJonny Lamb <jonny.lamb@collabora.co.uk>2010-12-15 16:18:17 +0000
commitdc8ed3beab9a09b8b9325a721542da4eb5ec29c6 (patch)
tree9a3fc5f2da9a1748e6688368d7f61130e67311b2
parent9e3dbf41df38147086cbb1e5a2dac73fbb5d4088 (diff)
protocol: implement TpBaseProtocolClass->dup_authentication_types
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--configure.ac2
-rw-r--r--src/protocol.c12
2 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6cad97e..49c279a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,7 +85,7 @@ PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.51, dbus-glib-1 >= 0.51])
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)
-PKG_CHECK_MODULES(TELEPATHY, [telepathy-glib >= 0.11.3])
+PKG_CHECK_MODULES(TELEPATHY, [telepathy-glib >= 0.13.9])
AC_SUBST(TELEPATHY_CFLAGS)
AC_SUBST(TELEPATHY_LIBS)
diff --git a/src/protocol.c b/src/protocol.c
index 9cda5dd..1863f1e 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -186,6 +186,17 @@ get_connection_details (TpBaseProtocol *self,
}
}
+static GStrv
+dup_authentication_types (TpBaseProtocol *base)
+{
+ const gchar * const types[] = {
+ TP_IFACE_CHANNEL_INTERFACE_SASL_AUTHENTICATION,
+ NULL,
+ };
+
+ return g_strdupv ((GStrv) types);
+}
+
static void
idle_protocol_class_init (IdleProtocolClass *klass)
{
@@ -197,6 +208,7 @@ idle_protocol_class_init (IdleProtocolClass *klass)
base_class->identify_account = identify_account;
base_class->get_interfaces = get_interfaces;
base_class->get_connection_details = get_connection_details;
+ base_class->dup_authentication_types = dup_authentication_types;
}
TpBaseProtocol *