From 0104d7af8052bed95ab44ecb006ed260cb905a26 Mon Sep 17 00:00:00 2001 From: Myungki Lee Date: Mon, 6 Mar 2017 17:14:46 +0900 Subject: Move define into a code file. - PATH_FMT_APP_ROOT, PATH_FMT_RO_APP_ROOT - Used app_main.c only Change-Id: Ic53d36d79ceb863cdd03405af800edd584964d9e Signed-off-by: Myungki Lee --- include/app_internal.h | 10 ---------- 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 #include -#include /* 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 #include #include +#include #include @@ -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 */ -- cgit v1.2.3