diff options
author | Ted Gould <ted@canonical.com> | 2009-11-02 20:18:30 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-11-02 20:18:30 -0600 |
commit | 8d4cdc72079681dd22471d2c513b6e0ae2519656 (patch) | |
tree | 4ab470e75ff0ed5be6ef879edbca49a384973fcd /src/custom-service.c | |
parent | df182c1c6680b2b7f0fbce6361d8114f40d0e7ae (diff) | |
parent | d496d7ad4557d8bd09030c47140210a666612a92 (diff) | |
download | libayatana-appindicator-8d4cdc72079681dd22471d2c513b6e0ae2519656.tar.gz libayatana-appindicator-8d4cdc72079681dd22471d2c513b6e0ae2519656.tar.bz2 libayatana-appindicator-8d4cdc72079681dd22471d2c513b6e0ae2519656.zip |
Grabbing from the service development branch
Diffstat (limited to 'src/custom-service.c')
-rw-r--r-- | src/custom-service.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/custom-service.c b/src/custom-service.c index d96a9de..df3d58a 100644 --- a/src/custom-service.c +++ b/src/custom-service.c @@ -1,16 +1,23 @@ -#include "notification-item-client.h" -void _notification_watcher_server_register_service (void) { }; -void _notification_watcher_server_registered_services (void) { }; -void _notification_watcher_server_protocol_version (void) { }; -void _notification_watcher_server_register_notification_host (void) { }; -void _notification_watcher_server_is_notification_host_registered (void) { }; +#include "libindicator/indicator-service.h" +#include "notification-item-client.h" +#include "custom-service-appstore.h" +#include "dbus-shared.h" -#include "notification-watcher-server.h" +static GMainLoop * mainloop = NULL; +static CustomServiceAppstore * appstore = NULL; +static IndicatorService * service = NULL; int main (int argc, char ** argv) { + g_type_init(); + + service = indicator_service_new(INDICATOR_CUSTOM_DBUS_ADDR); + appstore = CUSTOM_SERVICE_APPSTORE(g_object_new(CUSTOM_SERVICE_APPSTORE_TYPE, NULL)); + + mainloop = g_main_loop_new(NULL, FALSE); + g_main_loop_run(mainloop); return 0; } |