static alarm_cb_info_t *alarmcb_head;
-guint registration_id;
+static guint registration_id;
static GDBusNodeInfo *introspection_data;
return FALSE;
}
-GSourceFuncs funcs = {
+static GSourceFuncs funcs = {
.prepare = __timer_glib_prepare,
.check = __timer_glib_check,
.dispatch = __timer_glib_dispatch,
GSList *g_scheduled_alarm_list;
GSList *g_expired_alarm_list;
GSList *g_disabled_alarm_list;
-GHashTable *caller_appid_cache_table;
+static GHashTable *caller_appid_cache_table;
bool is_time_changed = false; /* for calculating next duetime */
static time_t periodic_alarm_standard_time = 0;
#define POLLFD_MAX 1
-GMainLoop *mainloop;
+static GMainLoop *__mainloop;
static int _sock_create(const char *path)
{
gboolean _timeout_handler(gpointer user_data)
{
- g_main_loop_quit(mainloop);
+ g_main_loop_quit(__mainloop);
return G_SOURCE_REMOVE;
}
exit(0);
}
- mainloop = g_main_loop_new(NULL, FALSE);
+ __mainloop = g_main_loop_new(NULL, FALSE);
g_unix_fd_add(sock_fd, G_IO_IN, _alarm_agent_main, NULL);
g_timeout_add_seconds(100, _timeout_handler, NULL);
- g_main_loop_run(mainloop);
+ g_main_loop_run(__mainloop);
- g_main_loop_unref(mainloop);
+ g_main_loop_unref(__mainloop);
close(sock_fd);
return 0;