# Check tzplatform-config library
PKG_CHECK_MODULES(TZPLATFORM_CONFIG, [libtzplatform-config])
-# Check appcore-efl library
-PKG_CHECK_MODULES(APPCORE_EFL, [appcore-efl])
-
# Check dlog library
PKG_CHECK_MODULES(DLOG, [dlog >= 0])
struct appdata *ad = (struct appdata *)data;
if (ad == NULL) return -1;
- appcore_measure_start ();
-
ad->win_main = create_win ("isf-demo-efl");
if (!ad->win_main) {
LOGE ("Failed to create window\n");
vconf_notify_key_changed (VCONFKEY_ISF_INPUT_PANEL_STATE, input_panel_state_changed_cb, NULL);
- /* add system event callback */
- appcore_set_event_callback (APPCORE_EVENT_LANG_CHANGE,
- lang_changed, ad);
ad->key_down_handler = ecore_event_handler_add (ECORE_EVENT_KEY_DOWN, _keydown_event, ad);
ad->key_up_handler = ecore_event_handler_add (ECORE_EVENT_KEY_UP, _keyup_event, ad);
- appcore_measure_time ();
-
autotest_add_demo(ad);
if (_autotest_enabled) {
isf_demo_autotest_run();
return 0;
}
-static int app_pause (void *data)
-{
- return 0;
-}
-
-static int app_resume (void *data)
-{
- return 0;
-}
-
EXAPI int main (int argc, char *argv[])
{
struct appdata ad;
- struct appcore_ops ops;
int ret = 0;
- ops.create = app_create;
- ops.terminate = app_exit;
- ops.pause = app_pause;
- ops.resume = app_resume;
- ops.reset = NULL;
+ elm_init (argc, argv);
- memset (&ad, 0x0, sizeof (struct appdata));
- ops.data = &ad;
+ app_create (&ad);
for (int loop = 0;loop < argc;loop++) {
if (strcmp(argv[loop], AUTOTEST_RUN_PARAMETER) == 0) {
}
}
- try {
- ret = appcore_efl_main ("isf-demo-efl", &argc, &argv, &ops);
- } catch (...) {
- LOGW ("Exception is thrown from appcore_efl_main ()!!!\n");
- }
+ elm_run ();
+
+ app_exit ((void *)&ad);
+
+ elm_shutdown ();
return ret;
}