alarm_context.session_conn = g_bus_get_sync(G_BUS_TYPE_SESSION, NULL, NULL);
}
- owner_id = g_bus_own_name_on_connection(is_user ?
- alarm_context.session_conn : alarm_context.connection,
- service_name_mod,
- G_BUS_NAME_OWNER_FLAGS_NONE, NULL, NULL, NULL, NULL);
- if (owner_id == 0) {
- ALARM_MGR_EXCEPTION_PRINT("Acquiring the own name is failed. %s", service_name_mod);
- goto error;
- }
-
introspection_data = g_dbus_node_info_new_for_xml(introspection_xml, NULL);
if (introspection_data == NULL) {
ALARM_MGR_EXCEPTION_PRINT("g_dbus_node_info_new_for_xml() is failed.");
goto error;
}
+ owner_id = g_bus_own_name_on_connection(is_user ?
+ alarm_context.session_conn : alarm_context.connection,
+ service_name_mod,
+ G_BUS_NAME_OWNER_FLAGS_NONE, NULL, NULL, NULL, NULL);
+ if (owner_id == 0) {
+ ALARM_MGR_EXCEPTION_PRINT("Acquiring the own name is failed. %s", service_name_mod);
+ goto error;
+ }
+
alarm_context.app_service_name = strdup(service_name);
alarm_context.app_service_name_mod = strdup(service_name_mod);