%description template
Application basics template
-%if "%{?tizen_profile_name}" == "wearable"
+%if "%{?profile}" == "wearable"
%define appfw_feature_background_management 1
%else
-%if "%{?tizen_profile_name}" == "mobile"
+%if "%{?profile}" == "mobile"
%define appfw_feature_background_management 1
%else
-%if "%{?tizen_profile_name}" == "tv"
+%if "%{?profile}" == "tv"
%define appfw_feature_background_management 0
%endif
%endif
memset(ac, 0, sizeof(struct appcore));
}
-void appcore_get_app_core(struct appcore **ac)
+EXPORT_API void appcore_get_app_core(struct appcore **ac)
{
*ac = &core;
}
gint pid;
gint status;
- if (g_strdmp0(signal_name, RESOURCED_FREEZER_SIGNAL) == 0) {
+ if (g_strcmp0(signal_name, RESOURCED_FREEZER_SIGNAL) == 0) {
g_variant_get(parameters, "(ii)", &status, &pid);
if (pid == getpid() && status == 0) { /* thawed */
if (ac && !ac->allowed_bg && ac->suspended_state) {
__suspend_dbus_handler_initialized = g_dbus_connection_signal_subscribe(
bus,
NULL,
- RESOURCED_FREEZER_PATH,
- RESOURCED_FREEZER_SIGNAL,
RESOURCED_FREEZER_INTERFACE,
+ RESOURCED_FREEZER_SIGNAL,
+ RESOURCED_FREEZER_PATH,
NULL,
G_DBUS_SIGNAL_FLAGS_NONE,
__suspend_dbus_signal_handler,
data,
NULL);
if (__suspend_dbus_handler_initialized == 0) {
- _E("g_dbus_connection_signal_subscribe() is failed.");
+ _ERR("g_dbus_connection_signal_subscribe() is failed.");
return -1;
}