Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
EAPI int elm_main(int argc, char **argv)
{
+#ifdef HAVE_TIZEN
+ int iReturn = 0;
+#endif
int args;
char *modem_path = NULL;
char *modem_api = NULL;
if (!amb_init()) {
CRITICAL("Could not setup automotive-message-broker");
_app_exit_code = EXIT_FAILURE;
- goto end_amb;
+ goto end_util;
}
#endif
if (!pa_init()) {
CRITICAL("Could not setup pulseaudio");
_app_exit_code = EXIT_FAILURE;
- goto end_pulseaudio;
+#ifdef HAVE_TIZEN
+ goto end_amb;
+#else
+ goto end_util;
+#endif
}
if (!gui_init()) {
CRITICAL("Could not setup graphical user interface");
_app_exit_code = EXIT_FAILURE;
- goto end_util;
+ goto end_pulseaudio;
}
INF("Entering main loop");
#ifdef HAVE_TIZEN
- int iReturn = 0;
struct appcore_ops ops = {
.create = _create,
.resume = _resume,
INF("Quit main loop");
gui_shutdown();
-
-end_util:
- util_shutdown();
end_pulseaudio:
pa_shutdown();
#ifdef HAVE_TIZEN
end_amb:
amb_shutdown();
#endif
+end_util:
+ util_shutdown();
end_ofono:
ofono_shutdown();
end_rc:
static void _amb_properties_changed(void *data __UNUSED__, DBusMessage *msg)
{
- const char *path;
AMB_Manager *m = _amb_get();
DBusMessageIter iter, value;
const char *interface;
return;
}
- path = dbus_message_get_path(msg);
-
dbus_message_iter_get_basic(&iter, &interface);
dbus_message_iter_next(&iter);
dbus_message_iter_recurse(&iter, &value);