char *_callmgr_util_get_multiuser_path(char *path);
void _callmgr_util_get_model_name(char **model_name);
+void _callmgr_util_get_profile(char **profile);
+
#endif //__CALLMGR_UTIL_H__
running = aul_app_is_running_for_uid(CALLUI_PKG_NAME, uid);
} else if (!g_strcmp0(profile, "wearable")) {
running = aul_app_is_running_for_uid(W_CALLUI_PKG_NAME, uid);
- }
- else {
+ } else {
err("call app is not supported on this profile");
return 0;
}
dbg("model_name: %s", *model_name);
}
+void _callmgr_util_get_profile(char **profile)
+{
+ int ret;
+
+ ret = system_info_get_platform_string("tizen.org/feature/profile", profile);
+ if (ret != SYSTEM_INFO_ERROR_NONE) {
+ err("system_info_get_platform_string() failed!!! (%d,%s)", ret, get_error_message(ret));
+ return;
+ }
+
+ dbg("profile: %s", *profile);
+}
%define major 0
%define minor 2
-%define patchlevel 25
+%define patchlevel 26
%define ext_feature 0
Name: call-manager
guint audio_routing_subs_id; /* Subscribe-Id for audio routing */
char *model_name;
+ char *profile;
} callmgr_core_data_t;
int _callmgr_core_init(callmgr_core_data_t **o_core_data);
if (!g_strcmp0(core_data->model_name, "TM1"))
_callmgr_core_init_dbus_call_routing_status(core_data);
+ _callmgr_util_get_profile(&core_data->profile);
+
_callmgr_telephony_init(&core_data->telephony_handle, __callmgr_core_process_telephony_events, core_data);
CM_RETURN_VAL_IF_FAIL(core_data->telephony_handle, -1);
if (core_data->model_name)
free(core_data->model_name);
+ if (core_data->profile)
+ free(core_data->profile);
g_free(core_data);
return 0;
}