Remove notification-display-service
[platform/core/appfw/notification-service.git] / main.c
1 #include <Ecore.h>
2 #include <notification_service.h>
3 #include <unistd.h>
4 #include <vconf.h>
5 #include <vconf-internal-livebox-keys.h>
6
7 int
8 main(int argc, char **argv)
9 {
10     if (!ecore_init()) {
11         fprintf(stderr, "ERROR: Cannot init Ecore!\n");
12         return -1;
13     }
14
15     if (notification_service_init() != 0) {
16         fprintf(stderr, "Unable to initialize notification service!\n");
17         goto shutdown;
18     }
19
20     vconf_set_bool(VCONFKEY_MASTER_STARTED, 1);
21     ecore_main_loop_begin();
22
23  shutdown:
24     vconf_set_bool(VCONFKEY_MASTER_STARTED, 0);
25     ecore_shutdown();
26
27     return 0;
28 }
29