aboutsummaryrefslogtreecommitdiff
path: root/src/custom-service-watcher.h
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-01 09:19:33 -0600
committerTed Gould <ted@gould.cx>2009-12-01 09:19:33 -0600
commit113fc34a5865253cd1508cce2973eb7aefddc2ab (patch)
tree5617ea7082f91be64719002a5cb2aa5b8e76a3ca /src/custom-service-watcher.h
parent71797b37811381cfb48e711348a1259f02bdd125 (diff)
parent1933cc6afeee8293363b5204f0bc9b94643f22dd (diff)
downloadayatana-indicator-application-113fc34a5865253cd1508cce2973eb7aefddc2ab.tar.gz
ayatana-indicator-application-113fc34a5865253cd1508cce2973eb7aefddc2ab.tar.bz2
ayatana-indicator-application-113fc34a5865253cd1508cce2973eb7aefddc2ab.zip
Updating to service-me-please branch.
Diffstat (limited to 'src/custom-service-watcher.h')
-rw-r--r--src/custom-service-watcher.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/custom-service-watcher.h b/src/custom-service-watcher.h
new file mode 100644
index 0000000..1a037be
--- /dev/null
+++ b/src/custom-service-watcher.h
@@ -0,0 +1,40 @@
+#ifndef __CUSTOM_SERVICE_WATCHER_H__
+#define __CUSTOM_SERVICE_WATCHER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include "custom-service-appstore.h"
+
+G_BEGIN_DECLS
+
+#define CUSTOM_SERVICE_WATCHER_TYPE (custom_service_watcher_get_type ())
+#define CUSTOM_SERVICE_WATCHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CUSTOM_SERVICE_WATCHER_TYPE, CustomServiceWatcher))
+#define CUSTOM_SERVICE_WATCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CUSTOM_SERVICE_WATCHER_TYPE, CustomServiceWatcherClass))
+#define IS_CUSTOM_SERVICE_WATCHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CUSTOM_SERVICE_WATCHER_TYPE))
+#define IS_CUSTOM_SERVICE_WATCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CUSTOM_SERVICE_WATCHER_TYPE))
+#define CUSTOM_SERVICE_WATCHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CUSTOM_SERVICE_WATCHER_TYPE, CustomServiceWatcherClass))
+
+typedef struct _CustomServiceWatcher CustomServiceWatcher;
+typedef struct _CustomServiceWatcherClass CustomServiceWatcherClass;
+
+struct _CustomServiceWatcherClass {
+ GObjectClass parent_class;
+
+ /* Signals */
+ void (*service_registered) (CustomServiceWatcher * watcher, gchar * object, gpointer data);
+ void (*service_unregistered) (CustomServiceWatcher * watcher, gchar * object, gpointer data);
+ void (*notification_host_registered) (CustomServiceWatcher * watcher, gpointer data);
+ void (*notification_host_unregistered) (CustomServiceWatcher * watcher, gpointer data);
+};
+
+struct _CustomServiceWatcher {
+ GObject parent;
+};
+
+GType custom_service_watcher_get_type (void);
+CustomServiceWatcher * custom_service_watcher_new (CustomServiceAppstore * appstore);
+
+G_END_DECLS
+
+#endif