diff options
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; } |