return ALARMMGR_RESULT_SUCCESS;
}
-#if !(GLIB_CHECK_VERSION(2, 32, 0))
- g_thread_init(NULL);
-#endif
-#if !(GLIB_CHECK_VERSION(2, 36, 0))
- g_type_init();
-#endif
-
alarm_context.connection = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &error);
if (alarm_context.connection == NULL) {
LOGE("g_bus_get_sync() is failed. error: %s", error->message);
result_cb, user_param))
return ERR_ALARM_SYSTEM_FAIL;
} else {
-#if !(GLIB_CHECK_VERSION(2, 32, 0))
- g_thread_init(NULL);
-#endif
-#if !(GLIB_CHECK_VERSION(2, 36, 0))
- g_type_init();
-#endif
param = g_try_new0(struct alarm_async_param_t, 1);
if (param == NULL) {
LOGE("Failed to alloc param");
new_time, req_time, result_cb, user_param))
return ERR_ALARM_SYSTEM_FAIL;
} else {
-#if !(GLIB_CHECK_VERSION(2, 32, 0))
- g_thread_init(NULL);
-#endif
-#if !(GLIB_CHECK_VERSION(2, 36, 0))
- g_type_init();
-#endif
param = g_try_new0(struct alarm_async_param_t, 1);
if (param == NULL) {
LOGE("Failed to alloc param");
#include "alarm-manager-util.h"
#include "alarm-manager-dbus.h"
-#if !GLIB_CHECK_VERSION(2, 31, 0)
-#include <glib/gmacros.h>
-#endif
-
/* link path for timezone info */
#define TIMEZONE_INFO_LINK_PATH tzplatform_mkpath(TZ_SYS_ETC, "localtime")
void _alarm_initialize()
{
-#if !(GLIB_CHECK_VERSION(2, 36, 0))
- g_type_init();
-#endif
time_t latest_settime;
//For debug
int expire_mode = ALARM_EXPIRE_MODE_NORMAL;