aboutsummaryrefslogtreecommitdiff
path: root/src/custom-service.c
blob: 3205bc228ca4e059cd1008a8a18cbcd809289682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

#include "libindicator/indicator-service.h"
#include "notification-item-client.h"
#include "custom-service-appstore.h"
#include "custom-service-watcher.h"
#include "dbus-shared.h"

static GMainLoop * mainloop = NULL;
static CustomServiceAppstore * appstore = NULL;
static CustomServiceWatcher * watcher = 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));
	watcher = custom_service_watcher_new(appstore);

	mainloop = g_main_loop_new(NULL, FALSE);
	g_main_loop_run(mainloop);

	return 0;
}