From: Young Ik Cho Date: Tue, 22 Oct 2013 23:29:53 +0000 (+0900) Subject: add minor initialization function X-Git-Tag: 2.2.1_release~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fcb469a666c6860b7724e3582614e18127cfa5c8;p=framework%2Fosp%2Fenv-config.git add minor initialization function Change-Id: I2d5076a38442baf382abf260519500540ff83a25 Signed-off-by: Young Ik Cho --- diff --git a/appinfo/CMakeLists.txt b/appinfo/CMakeLists.txt index 9718a86..a46236d 100644 --- a/appinfo/CMakeLists.txt +++ b/appinfo/CMakeLists.txt @@ -3,7 +3,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) SET(this_target appinfo) SET(VERSION_MAJOR 0) -SET(VERSION "${VERSION_MAJOR}.1.1") +SET(VERSION "${VERSION_MAJOR}.1.2") #INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/inc) diff --git a/appinfo/appinfo.c b/appinfo/appinfo.c index 5078f24..b93f840 100644 --- a/appinfo/appinfo.c +++ b/appinfo/appinfo.c @@ -365,6 +365,18 @@ int appinfo_update_submode_execname_and_appid(const char* execname) return 1; } +int appinfo_update_submode_appid(const char* appid) +{ + if (appid == NULL) + { + return 0; + } + + strncpy(__appid, appid, MAX_APPID); + + return 1; +} + #ifdef __cplusplus } #endif diff --git a/appinfo/appinfo.h b/appinfo/appinfo.h index ea7963d..fa28ece 100644 --- a/appinfo/appinfo.h +++ b/appinfo/appinfo.h @@ -144,6 +144,8 @@ int appinfo_get_argv(int* argc, char*** argv); int appinfo_update_submode_execname_and_appid(const char* execname); +int appinfo_update_submode_appid(const char* appid); + #ifdef __cplusplus } #endif