[next] telepathy-idle: idle_connection_constructed: export our TpSvc* interfaces
Simon McVittie
smcv at kemper.freedesktop.org
Wed May 7 02:18:31 PDT 2014
Module: telepathy-idle
Branch: next
Commit: 03e3de018251530038b105f0e2251aae1503dfe8
URL: http://cgit.freedesktop.org/telepathy/telepathy-idle/commit/?id=03e3de018251530038b105f0e2251aae1503dfe8
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Tue Apr 22 15:22:24 2014 +0100
idle_connection_constructed: export our TpSvc* interfaces
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77189
---
src/idle-connection.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
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) {
More information about the telepathy-commits
mailing list