aboutsummaryrefslogtreecommitdiff
path: root/src/application-service-watcher.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-07-12 09:26:50 -0500
committerTed Gould <ted@gould.cx>2010-07-12 09:26:50 -0500
commit7ef183418aaee73864e44d93b32e80962fdea07a (patch)
tree4bf494ab0e9a5605e97f4066bb4ac9d5fb851462 /src/application-service-watcher.c
parent1ddd622e7f2ab0142c826459e1a38fec926c4dc6 (diff)
parent25b69bb08e3e5a3df7037f8ac786422ff53f6425 (diff)
downloadlibayatana-appindicator-7ef183418aaee73864e44d93b32e80962fdea07a.tar.gz
libayatana-appindicator-7ef183418aaee73864e44d93b32e80962fdea07a.tar.bz2
libayatana-appindicator-7ef183418aaee73864e44d93b32e80962fdea07a.zip
Putting in a basic approver API.
Diffstat (limited to 'src/application-service-watcher.c')
-rw-r--r--src/application-service-watcher.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/application-service-watcher.c b/src/application-service-watcher.c
index eff249d..4fe3bc7 100644
--- a/src/application-service-watcher.c
+++ b/src/application-service-watcher.c
@@ -34,6 +34,7 @@ static gboolean _notification_watcher_server_register_status_notifier_item (Appl
static gboolean _notification_watcher_server_registered_status_notifier_items (ApplicationServiceWatcher * appwatcher, GArray ** apps);
static gboolean _notification_watcher_server_protocol_version (ApplicationServiceWatcher * appwatcher, char ** version);
static gboolean _notification_watcher_server_register_notification_host (ApplicationServiceWatcher * appwatcher, const gchar * host);
+static gboolean _notification_watcher_server_register_notification_approver (ApplicationServiceWatcher * appwatcher, const gchar * path, const GArray * categories, DBusGMethodInvocation * method);
static gboolean _notification_watcher_server_is_notification_host_registered (ApplicationServiceWatcher * appwatcher, gboolean * haveHost);
static void get_name_cb (DBusGProxy * proxy, guint status, GError * error, gpointer data);
@@ -249,3 +250,16 @@ get_name_cb (DBusGProxy * proxy, guint status, GError * error, gpointer data)
return;
}
+
+static gboolean
+_notification_watcher_server_register_notification_approver (ApplicationServiceWatcher * appwatcher, const gchar * path, const GArray * categories, DBusGMethodInvocation * method)
+{
+ ApplicationServiceWatcherPrivate * priv = APPLICATION_SERVICE_WATCHER_GET_PRIVATE(appwatcher);
+
+ application_service_appstore_approver_add(priv->appstore,
+ dbus_g_method_get_sender(method),
+ path);
+
+ dbus_g_method_return(method, G_TYPE_NONE);
+ return TRUE;
+}