aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
-rw-r--r--src/status-provider.c55
-rw-r--r--src/status-provider.h31
3 files changed, 87 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 86bacb8..df51cf5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,7 +7,7 @@ libstatus_users_session_la_SOURCES = indicator-sus.c dbus-shared-names.h
libstatus_users_session_la_CFLAGS = $(APPLET_CFLAGS) -Wall -Werror
libstatus_users_session_la_LIBADD = $(APPLET_LIBS)
-indicator_status_service_SOURCES = status-service.c
+indicator_status_service_SOURCES = status-service.c status-provider.h status-provider.c
indicator_status_service_CFLAGS = $(STATUSSERVICE_CFLAGS)
indicator_status_service_LDADD = $(STATUSSERVICE_LIBS)
diff --git a/src/status-provider.c b/src/status-provider.c
new file mode 100644
index 0000000..c2f7de2
--- /dev/null
+++ b/src/status-provider.c
@@ -0,0 +1,55 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "status-provider.h"
+
+typedef struct _StatusProviderPrivate StatusProviderPrivate;
+struct _StatusProviderPrivate {
+};
+
+#define STATUS_PROVIDER_GET_PRIVATE(o) \
+(G_TYPE_INSTANCE_GET_PRIVATE ((o), STATUS_PROVIDER_TYPE, StatusProviderPrivate))
+
+static void status_provider_class_init (StatusProviderClass *klass);
+static void status_provider_init (StatusProvider *self);
+static void status_provider_dispose (GObject *object);
+static void status_provider_finalize (GObject *object);
+
+G_DEFINE_TYPE (StatusProvider, status_provider, G_TYPE_OBJECT);
+
+static void
+status_provider_class_init (StatusProviderClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ g_type_class_add_private (klass, sizeof (StatusProviderPrivate));
+
+ object_class->dispose = status_provider_dispose;
+ object_class->finalize = status_provider_finalize;
+
+ return;
+}
+
+static void
+status_provider_init (StatusProvider *self)
+{
+
+ return;
+}
+
+static void
+status_provider_dispose (GObject *object)
+{
+
+ G_OBJECT_CLASS (status_provider_parent_class)->dispose (object);
+ return;
+}
+
+static void
+status_provider_finalize (GObject *object)
+{
+
+ G_OBJECT_CLASS (status_provider_parent_class)->finalize (object);
+ return;
+}
diff --git a/src/status-provider.h b/src/status-provider.h
new file mode 100644
index 0000000..7d36f02
--- /dev/null
+++ b/src/status-provider.h
@@ -0,0 +1,31 @@
+#ifndef __STATUS_PROVIDER_H__
+#define __STATUS_PROVIDER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define STATUS_PROVIDER_TYPE (status_provider_get_type ())
+#define STATUS_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), STATUS_PROVIDER_TYPE, StatusProvider))
+#define STATUS_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), STATUS_PROVIDER_TYPE, StatusProviderClass))
+#define IS_STATUS_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), STATUS_PROVIDER_TYPE))
+#define IS_STATUS_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), STATUS_PROVIDER_TYPE))
+#define STATUS_PROVIDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), STATUS_PROVIDER_TYPE, StatusProviderClass))
+
+
+typedef struct _StatusProviderClass StatusProviderClass;
+struct _StatusProviderClass {
+ GObjectClass parent_class;
+};
+
+typedef struct _StatusProvider StatusProvider;
+struct _StatusProvider {
+ GObject parent;
+};
+
+GType status_provider_get_type (void);
+
+G_END_DECLS
+
+#endif