Add sub package ail_vconf-devel 80/34380/2 accepted/tizen/common/20150126.100505 accepted/tizen/wearable/20150128.040558 submit/tizen_common/20150126.100243 submit/tizen_wearable/20150127.000000
authorBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Mon, 26 Jan 2015 09:09:44 +0000 (10:09 +0100)
committerBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Mon, 26 Jan 2015 09:50:38 +0000 (10:50 +0100)
Theses following functions ;
ail_vconf_get_str
ail_vconf_set_str

should be used for all binaries used during image creations

see details: https://bugs.tizen.org/jira/browse/TC-2399
BUG-Tizen=TC-2399
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Change-Id: Ifd9e0ea9d791280fc2bcc0c6cd3aa0ea31649dd5
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
CMakeLists.txt
packaging/ail.spec
src/ail_vconf.c

index 4e9502f..57b12d9 100644 (file)
@@ -54,6 +54,7 @@ CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc @ONL
 INSTALL(TARGETS ${LIBNAME} DESTINATION ${LIB_INSTALL_DIR})
 INSTALL(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/include/ail.h DESTINATION include)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/src/ail_vconf.h DESTINATION include)
 CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/desktop.conf.in ${CMAKE_SOURCE_DIR}/desktop.conf)
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/desktop.conf DESTINATION share/install-info)
 
index 570a4ff..73c5aee 100755 (executable)
@@ -28,6 +28,16 @@ Requires:       pkgconfig(libsmack)
 %description devel
 Application Information Library Development files package
 
+%package vconf-devel
+Summary:        Application Information Library Development files
+Requires:       libail = %{version}-%{release}
+
+%description vconf-devel
+Application Information Library Development files package
+This developement file purpose concerns the issue TC-2399
+https://bugs.tizen.org/jira/browse/TC-2399
+
+
 %prep
 %setup -q
 cp %{SOURCE1001} .
@@ -119,3 +129,6 @@ fi
 %{_includedir}/ail.h
 %{_libdir}/libail.so
 %{_libdir}/pkgconfig/ail.pc
+
+%files vconf-devel
+%{_includedir}/ail_vconf.h
index 8fa3088..a1471c3 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <vconf.h>
 #include "ail_vconf.h"
+#include "ail_private.h"
 
 #define VCONFTOOL              "/usr/bin/vconftool"
 #define CMD_VCONF_GET_STR      VCONFTOOL " -q get '%s'"
@@ -113,7 +114,7 @@ static int _ail_vconf_exec_(char **readen, const char *cmddef, ...)
 /*
  vconf_get_str with fallback to the command vconftool.
 */
-char *ail_vconf_get_str(const char *keyname)
+EXPORT_API char *ail_vconf_get_str(const char *keyname)
 {
        char *result;
        char *data;
@@ -146,7 +147,7 @@ char *ail_vconf_get_str(const char *keyname)
 /*
  vconf_set_str with fallback to the command vconftool.
 */
-int ail_vconf_set_str(const char *keyname, const char *strval)
+EXPORT_API int ail_vconf_set_str(const char *keyname, const char *strval)
 {
        int result;
        char *data;