Change-Id: I596e31e4b2f5780541cd51a54728bc0791ed2034
Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#include <Elementary.h>
+#ifdef HAVE_TIZEN
#include <appcore-efl.h>
+#endif
+#include <Elementary.h>
#include <stdio.h>
#include <stdlib.h>
#include <Evas.h>
#ifndef ELM_LIB_QUICKLAUNCH
+#include "gui.h"
#include "log.h"
#include "ofono.h"
-#include "gui.h"
#include "rc.h"
#include "util.h"
int _log_domain = -1;
int _app_exit_code = EXIT_SUCCESS;
+#ifdef HAVE_TIZEN
static int _create(void *data __UNUSED__)
{
return 0;
{
return 0;
}
+#endif
EAPI int elm_main(int argc, char **argv)
{
int args;
- int iReturn = 0;
char *modem_path = NULL;
char *modem_api = NULL;
char *modem_type = NULL;
INF("Entering main loop");
+#ifdef HAVE_TIZEN
+ int iReturn = 0;
struct appcore_ops ops = {
.create = _create,
.resume = _resume,
.terminate = _terminate,
};
ops.data = NULL;
- //elm_run();
iReturn = appcore_efl_main("org.tizen.dialer", &argc, &argv, &ops);
+#else
+ elm_run();
+#endif
INF("Quit main loop");
gui_shutdown();
end:
elm_shutdown();
+#ifdef HAVE_TIZEN
return iReturn;
- //return _app_exit_code;
+#else
+ return _app_exit_code;
+#endif
}
#endif