aboutsummaryrefslogtreecommitdiff
path: root/src/custom-service-appstore.h
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-02 11:55:27 -0600
committerTed Gould <ted@gould.cx>2009-12-02 11:55:27 -0600
commit47741f6a4e84f187858caa54dc625a9d3d5e2b07 (patch)
treedc31888f2106019130da16fb1af5e1bba63bb46b /src/custom-service-appstore.h
parentf23c54ff5fee5587c31ecb8bf176b58fa3d4be1d (diff)
parent8c7ce8faffe025e5c5cf8f4f23d9cf97cf719533 (diff)
downloadlibayatana-appindicator-47741f6a4e84f187858caa54dc625a9d3d5e2b07.tar.gz
libayatana-appindicator-47741f6a4e84f187858caa54dc625a9d3d5e2b07.tar.bz2
libayatana-appindicator-47741f6a4e84f187858caa54dc625a9d3d5e2b07.zip
Create a service and start using it. Also updating to libindicator 0.3.0.
Diffstat (limited to 'src/custom-service-appstore.h')
-rw-r--r--src/custom-service-appstore.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/custom-service-appstore.h b/src/custom-service-appstore.h
new file mode 100644
index 0000000..7263617
--- /dev/null
+++ b/src/custom-service-appstore.h
@@ -0,0 +1,40 @@
+#ifndef __CUSTOM_SERVICE_APPSTORE_H__
+#define __CUSTOM_SERVICE_APPSTORE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define CUSTOM_SERVICE_APPSTORE_TYPE (custom_service_appstore_get_type ())
+#define CUSTOM_SERVICE_APPSTORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CUSTOM_SERVICE_APPSTORE_TYPE, CustomServiceAppstore))
+#define CUSTOM_SERVICE_APPSTORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CUSTOM_SERVICE_APPSTORE_TYPE, CustomServiceAppstoreClass))
+#define IS_CUSTOM_SERVICE_APPSTORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CUSTOM_SERVICE_APPSTORE_TYPE))
+#define IS_CUSTOM_SERVICE_APPSTORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CUSTOM_SERVICE_APPSTORE_TYPE))
+#define CUSTOM_SERVICE_APPSTORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CUSTOM_SERVICE_APPSTORE_TYPE, CustomServiceAppstoreClass))
+
+typedef struct _CustomServiceAppstore CustomServiceAppstore;
+typedef struct _CustomServiceAppstoreClass CustomServiceAppstoreClass;
+
+struct _CustomServiceAppstoreClass {
+ GObjectClass parent_class;
+};
+
+struct _CustomServiceAppstore {
+ GObject parent;
+
+ void (*application_added) (CustomServiceAppstore * appstore, gchar *, gint, gchar *, gchar *, gpointer);
+ void (*application_removed) (CustomServiceAppstore * appstore, gint, gpointer);
+};
+
+GType custom_service_appstore_get_type (void);
+void custom_service_appstore_application_add (CustomServiceAppstore * appstore,
+ const gchar * dbus_name,
+ const gchar * dbus_object);
+void custom_service_appstore_application_remove (CustomServiceAppstore * appstore,
+ const gchar * dbus_name,
+ const gchar * dbus_object);
+
+G_END_DECLS
+
+#endif