aboutsummaryrefslogtreecommitdiff
path: root/src/custom-service-watcher.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-11-06 16:55:48 -0600
committerTed Gould <ted@canonical.com>2009-11-06 16:55:48 -0600
commitab660ab46dabfdd99fb4e5ee8641a305299852c8 (patch)
treef030bbe275f1d7e73ece9360d05a818d6484d13b /src/custom-service-watcher.c
parentc894aa50b044926d9f8fa30591fdb4f8aada36b5 (diff)
downloadlibayatana-appindicator-ab660ab46dabfdd99fb4e5ee8641a305299852c8.tar.gz
libayatana-appindicator-ab660ab46dabfdd99fb4e5ee8641a305299852c8.tar.bz2
libayatana-appindicator-ab660ab46dabfdd99fb4e5ee8641a305299852c8.zip
Creating a new object to be our watcher. Apparently we can't have two DBus interfaces on the same object :(
Diffstat (limited to 'src/custom-service-watcher.c')
-rw-r--r--src/custom-service-watcher.c56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/custom-service-watcher.c b/src/custom-service-watcher.c
new file mode 100644
index 0000000..5899b83
--- /dev/null
+++ b/src/custom-service-watcher.c
@@ -0,0 +1,56 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "custom-service-watcher.h"
+
+typedef struct _CustomServiceWatcherPrivate CustomServiceWatcherPrivate;
+struct _CustomServiceWatcherPrivate {
+ int dummy;
+};
+
+#define CUSTOM_SERVICE_WATCHER_GET_PRIVATE(o) \
+(G_TYPE_INSTANCE_GET_PRIVATE ((o), CUSTOM_SERVICE_WATCHER_TYPE, CustomServiceWatcherPrivate))
+
+static void custom_service_watcher_class_init (CustomServiceWatcherClass *klass);
+static void custom_service_watcher_init (CustomServiceWatcher *self);
+static void custom_service_watcher_dispose (GObject *object);
+static void custom_service_watcher_finalize (GObject *object);
+
+G_DEFINE_TYPE (CustomServiceWatcher, custom_service_watcher, G_TYPE_OBJECT);
+
+static void
+custom_service_watcher_class_init (CustomServiceWatcherClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ g_type_class_add_private (klass, sizeof (CustomServiceWatcherPrivate));
+
+ object_class->dispose = custom_service_watcher_dispose;
+ object_class->finalize = custom_service_watcher_finalize;
+
+ return;
+}
+
+static void
+custom_service_watcher_init (CustomServiceWatcher *self)
+{
+
+ return;
+}
+
+static void
+custom_service_watcher_dispose (GObject *object)
+{
+
+ G_OBJECT_CLASS (custom_service_watcher_parent_class)->dispose (object);
+ return;
+}
+
+static void
+custom_service_watcher_finalize (GObject *object)
+{
+
+ G_OBJECT_CLASS (custom_service_watcher_parent_class)->finalize (object);
+ return;
+}