diff options
author | Myungki Lee <mk5004.lee@samsung.com> | 2017-03-06 17:14:46 +0900 |
---|---|---|
committer | Myungki Lee <mk5004.lee@samsung.com> | 2017-03-06 17:14:46 +0900 |
commit | 0104d7af8052bed95ab44ecb006ed260cb905a26 (patch) | |
tree | c24562840cab126fcf3c59eb3c2e9aee7cd64c31 | |
parent | d3c84133da116d9a20bd32e5b5c53f685b117cc8 (diff) | |
download | application-0104d7af8052bed95ab44ecb006ed260cb905a26.tar.gz application-0104d7af8052bed95ab44ecb006ed260cb905a26.tar.bz2 application-0104d7af8052bed95ab44ecb006ed260cb905a26.zip |
Move define into a code file.submit/tizen_3.0/20170307.051018accepted/tizen/3.0/wearable/20170307.090602accepted/tizen/3.0/tv/20170307.090516accepted/tizen/3.0/mobile/20170307.090352accepted/tizen/3.0/ivi/20170307.090648accepted/tizen/3.0/common/20170307.113546
- PATH_FMT_APP_ROOT, PATH_FMT_RO_APP_ROOT
- Used app_main.c only
Change-Id: Ic53d36d79ceb863cdd03405af800edd584964d9e
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
-rw-r--r-- | include/app_internal.h | 10 | ||||
-rwxr-xr-x | src/app_main.c | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/include/app_internal.h b/include/app_internal.h index bdd09fe..8933d11 100644 --- a/include/app_internal.h +++ b/include/app_internal.h @@ -20,7 +20,6 @@ #include <app.h> #include <appcore-common.h> -#include <tzplatform_config.h> /* GNU gettext macro is already defined at appcore-common.h */ #ifdef _ @@ -33,15 +32,6 @@ extern "C" { #define TIZEN_PATH_MAX 1024 -#define PATH_FMT_APP_ROOT tzplatform_getenv(TZ_USER_APP) -#define PATH_FMT_RES_DIR "/res" -#define PATH_FMT_LOCALE_DIR "/locale" -#define PATH_FMT_DATA_DIR "/data" - -#define PATH_FMT_RO_APP_ROOT tzplatform_getenv(TZ_SYS_RO_APP) -#define PATH_FMT_RO_RES_DIR "/res" -#define PATH_FMT_RO_LOCALE_DIR "/local" - struct app_event_handler { app_event_type_e type; app_event_cb cb; diff --git a/src/app_main.c b/src/app_main.c index d6ae3af..9081b8a 100755 --- a/src/app_main.c +++ b/src/app_main.c @@ -27,6 +27,7 @@ #include <appcore-efl.h> #include <aul.h> #include <dlog.h> +#include <tzplatform_config.h> #include <Elementary.h> @@ -44,6 +45,15 @@ #define UI_APP_EVENT_MAX 7 +#define PATH_FMT_APP_ROOT tzplatform_getenv(TZ_USER_APP) +#define PATH_FMT_RES_DIR "/res" +#define PATH_FMT_LOCALE_DIR "/locale" +#define PATH_FMT_DATA_DIR "/data" + +#define PATH_FMT_RO_APP_ROOT tzplatform_getenv(TZ_SYS_RO_APP) +#define PATH_FMT_RO_RES_DIR "/res" +#define PATH_FMT_RO_LOCALE_DIR "/local" + typedef enum { APP_STATE_NOT_RUNNING, /* The application has been launched or was running but was terminated */ APP_STATE_CREATING, /* The application is initializing the resources on app_create_cb callback */ |