summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-04-22 15:22:24 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-05-07 10:02:30 +0100
commit03e3de018251530038b105f0e2251aae1503dfe8 (patch)
tree6b0507bf748887fecac6fafbc46e56b39f8e27ed
parent531bae905c7bb6ea3f8f195e66d2fd75c9359060 (diff)
downloadtelepathy-idle-03e3de018251530038b105f0e2251aae1503dfe8.tar.gz
idle_connection_constructed: export our TpSvc* interfaces
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77189
-rw-r--r--src/idle-connection.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/idle-connection.c b/src/idle-connection.c
index b1c3b1d..7166972 100644
--- a/src/idle-connection.c
+++ b/src/idle-connection.c
@@ -250,11 +250,33 @@ idle_connection_constructed (GObject *object)
void (*chain_up) (GObject *) =
G_OBJECT_CLASS (idle_connection_parent_class)->constructed;
IdleConnection *self = IDLE_CONNECTION (object);
+ GDBusObjectSkeleton *skel = G_DBUS_OBJECT_SKELETON (object);
+ GDBusInterfaceSkeleton *iface;
chain_up (object);
self->parser = g_object_new (IDLE_TYPE_PARSER, "connection", self, NULL);
idle_contact_info_init (self);
+
+ iface = tp_svc_interface_skeleton_new (skel,
+ TP_TYPE_SVC_CONNECTION_INTERFACE_ALIASING1);
+ g_dbus_object_skeleton_add_interface (skel, iface);
+ g_object_unref (iface);
+
+ iface = tp_svc_interface_skeleton_new (skel,
+ TP_TYPE_SVC_CONNECTION_INTERFACE_CONTACT_INFO1);
+ g_dbus_object_skeleton_add_interface (skel, iface);
+ g_object_unref (iface);
+
+ iface = tp_svc_interface_skeleton_new (skel,
+ TP_TYPE_SVC_CONNECTION_INTERFACE_IRC_COMMAND1);
+ g_dbus_object_skeleton_add_interface (skel, iface);
+ g_object_unref (iface);
+
+ iface = tp_svc_interface_skeleton_new (skel,
+ TP_TYPE_SVC_CONNECTION_INTERFACE_RENAMING1);
+ g_dbus_object_skeleton_add_interface (skel, iface);
+ g_object_unref (iface);
}
static void idle_connection_set_property(GObject *obj, guint prop_id, const GValue *value, GParamSpec *pspec) {