From 2e39b18fd87c298eeb9e104d3e80f76b1d937c21 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 29 Oct 2009 16:11:02 -0500 Subject: Woot! We're a DBus service now. --- libindicator/indicator-service.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'libindicator') diff --git a/libindicator/indicator-service.c b/libindicator/indicator-service.c index 9b7e885..125ecfc 100644 --- a/libindicator/indicator-service.c +++ b/libindicator/indicator-service.c @@ -5,6 +5,11 @@ #include "indicator-service.h" +/* DBus Prototypes */ +void _indicator_service_server_watch (void); + +#include "indicator-service-server.h" + /* Private Stuff */ typedef struct _IndicatorServicePrivate IndicatorServicePrivate; @@ -87,6 +92,10 @@ indicator_service_class_init (IndicatorServiceClass *klass) g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE); + /* Initialize the object as a DBus type */ + dbus_g_object_type_install_info(INDICATOR_SERVICE_TYPE, + &dbus_glib__indicator_service_server_object_info); + return; } @@ -119,6 +128,10 @@ indicator_service_init (IndicatorService *self) return; } + dbus_g_connection_register_g_object(session_bus, + "/need/a/path", + G_OBJECT(self)); + return; } @@ -241,6 +254,8 @@ try_and_get_name (IndicatorService * service) return; } +void _indicator_service_server_watch (void) { } + /* API */ /** -- cgit v1.2.3