change db path and fix permission error 05/78605/1 accepted/tizen_wearable accepted/tizen/3.0/ivi/20161011.055335 accepted/tizen/3.0/mobile/20161015.032645 accepted/tizen/3.0/tv/20161016.003955 accepted/tizen/common/20160706.142511 accepted/tizen/ivi/20160706.132720 accepted/tizen/mobile/20160706.131457 accepted/tizen/tv/20160706.131536 accepted/tizen/wearable/20160706.131647 submit/tizen/20160706.081605 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000005 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_tv/20161015.000001
authorHyihong Chae <hh.chae@samsung.com>
Wed, 6 Jul 2016 08:06:15 +0000 (17:06 +0900)
committerHyihong Chae <hh.chae@samsung.com>
Wed, 6 Jul 2016 08:06:15 +0000 (17:06 +0900)
Change-Id: I9b6578a1f31ddb19adbc38695039e2994efc55d4
Signed-off-by: HyiHong Chae <hh.chae@samsung.com>
CMakeLists.txt
include/mtp_db.h
packaging/capi-network-mtp.spec

index a8c6a0b389b178c6d7b6b26a5b716392373784d6..e6b112eab5d14cf6db6c0b7812be568479c72e64 100755 (executable)
@@ -11,7 +11,7 @@ SET(service "network")
 SET(submodule "mtp")
 
 # for package file
-SET(dependents "dlog glib-2.0 gio-2.0 capi-base-common gio-unix-2.0 sqlite3 capi-system-info")
+SET(dependents "dlog glib-2.0 gio-2.0 capi-base-common gio-unix-2.0 sqlite3 capi-system-info libtzplatform-config")
 SET(pc_dependents "capi-base-common")
 
 SET(fw_name "${project_prefix}-${service}-${submodule}")
index 2364d0a6f5c73bf535306a215fc521fb8a357835..9b48c676b7e867c8524019b4349160f13dc5c0c1 100755 (executable)
 #include <stdlib.h>
 #include <string.h>
 #include <sqlite3.h>
+#include <tzplatform_config.h>
 
 #include "mtp.h"
 #include "mtp_internal.h"
 
-#define MTP_DB_FILE "/tmp/.mtp.db"
+#define MTP_DB_FILE tzplatform_mkpath(TZ_SYS_DB, "mtp/.mtp.db")
 #define MTP_DB_TABLE "mtp_object_info"
 
 mtp_error_e mtp_db_init(void);
index 64bf1d0cf7036c02e5ceb8619a075c239c917867..cf734f86392cf0d0fc30482aadbb040ca7a1e251 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-network-mtp
 Summary:    A MTP library in Native API
-Version:    1.3.13
+Version:    1.3.14
 Release:    1
 Group:      Network & Connectivity/Other
 License:    Apache-2.0