add minor initialization function
authorYoung Ik Cho <youngik.cho@samsung.com>
Tue, 22 Oct 2013 23:29:53 +0000 (08:29 +0900)
committerYoung Ik Cho <youngik.cho@samsung.com>
Tue, 22 Oct 2013 23:29:53 +0000 (08:29 +0900)
Change-Id: I2d5076a38442baf382abf260519500540ff83a25
Signed-off-by: Young Ik Cho <youngik.cho@samsung.com>
appinfo/CMakeLists.txt
appinfo/appinfo.c
appinfo/appinfo.h

index 9718a86..a46236d 100644 (file)
@@ -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)
 
index 5078f24..b93f840 100644 (file)
@@ -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
index ea7963d..fa28ece 100644 (file)
@@ -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