aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-06-12 16:56:08 -0500
committerTed Gould <ted@canonical.com>2009-06-12 16:56:08 -0500
commit9eb765152122a08ddfa95b150d9a7d5c46559356 (patch)
treef6b919a96d5dd4b92e8840c11e6afde8661b6ec1 /src
parent35477b8fb1bd21c4cccf039c4648af47972414a9 (diff)
downloadayatana-indicator-session-9eb765152122a08ddfa95b150d9a7d5c46559356.tar.gz
ayatana-indicator-session-9eb765152122a08ddfa95b150d9a7d5c46559356.tar.bz2
ayatana-indicator-session-9eb765152122a08ddfa95b150d9a7d5c46559356.zip
A quickly little object to put itself on DBus.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
-rw-r--r--src/status-service-dbus.c56
-rw-r--r--src/status-service-dbus.h31
-rw-r--r--src/status-service.c2
4 files changed, 91 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index a6a4dd5..1965fe9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -20,6 +20,8 @@ libstatus_users_session_la_LIBADD = $(APPLET_LIBS)
indicator_status_service_SOURCES = \
status-service.c \
+ status-service-dbus.h \
+ status-service-dbus.c \
status-service-server.h \
status-provider.h \
status-provider.c \
diff --git a/src/status-service-dbus.c b/src/status-service-dbus.c
new file mode 100644
index 0000000..1eb94ca
--- /dev/null
+++ b/src/status-service-dbus.c
@@ -0,0 +1,56 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "status-service-dbus.h"
+
+static void status_service_dbus_class_init (StatusServiceDbusClass *klass);
+static void status_service_dbus_init (StatusServiceDbus *self);
+static void status_service_dbus_dispose (GObject *object);
+static void status_service_dbus_finalize (GObject *object);
+static void _status_service_server_watch (void);
+
+#include "status-service-server.h"
+
+G_DEFINE_TYPE (StatusServiceDbus, status_service_dbus, G_TYPE_OBJECT);
+
+static void
+status_service_dbus_class_init (StatusServiceDbusClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ object_class->dispose = status_service_dbus_dispose;
+ object_class->finalize = status_service_dbus_finalize;
+
+ return;
+}
+
+static void
+status_service_dbus_init (StatusServiceDbus *self)
+{
+
+ return;
+}
+
+static void
+status_service_dbus_dispose (GObject *object)
+{
+
+ G_OBJECT_CLASS (status_service_dbus_parent_class)->dispose (object);
+ return;
+}
+
+static void
+status_service_dbus_finalize (GObject *object)
+{
+
+ G_OBJECT_CLASS (status_service_dbus_parent_class)->finalize (object);
+ return;
+}
+
+static void
+_status_service_server_watch (void)
+{
+
+ return;
+}
diff --git a/src/status-service-dbus.h b/src/status-service-dbus.h
new file mode 100644
index 0000000..1805dc5
--- /dev/null
+++ b/src/status-service-dbus.h
@@ -0,0 +1,31 @@
+#ifndef __STATUS_SERVICE_DBUS_H__
+#define __STATUS_SERVICE_DBUS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define STATUS_SERVICE_DBUS_TYPE (status_service_dbus_get_type ())
+#define STATUS_SERVICE_DBUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), STATUS_SERVICE_DBUS_TYPE, StatusServiceDbus))
+#define STATUS_SERVICE_DBUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), STATUS_SERVICE_DBUS_TYPE, StatusServiceDbusClass))
+#define IS_STATUS_SERVICE_DBUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), STATUS_SERVICE_DBUS_TYPE))
+#define IS_STATUS_SERVICE_DBUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), STATUS_SERVICE_DBUS_TYPE))
+#define STATUS_SERVICE_DBUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), STATUS_SERVICE_DBUS_TYPE, StatusServiceDbusClass))
+
+typedef struct _StatusServiceDbus StatusServiceDbus;
+typedef struct _StatusServiceDbusClass StatusServiceDbusClass;
+
+struct _StatusServiceDbusClass {
+ GObjectClass parent_class;
+};
+
+struct _StatusServiceDbus {
+ GObject parent;
+};
+
+GType status_service_dbus_get_type (void);
+
+G_END_DECLS
+
+#endif
diff --git a/src/status-service.c b/src/status-service.c
index 392b23a..e31a0db 100644
--- a/src/status-service.c
+++ b/src/status-service.c
@@ -9,6 +9,8 @@
#include "dbus-shared-names.h"
+#include "status-service-dbus.h"
+
#include "status-provider.h"
#include "status-provider-pidgin.h"