From 2f56a3efac430d9a3e986d7e6e01d5ef2620f715 Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Mon, 26 Jan 2015 10:09:44 +0100 Subject: [PATCH] Add sub package ail_vconf-devel 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 Change-Id: Ifd9e0ea9d791280fc2bcc0c6cd3aa0ea31649dd5 Signed-off-by: Baptiste DURAND --- CMakeLists.txt | 1 + packaging/ail.spec | 13 +++++++++++++ src/ail_vconf.c | 5 +++-- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e9502f..57b12d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/packaging/ail.spec b/packaging/ail.spec index 570a4ff..73c5aee 100755 --- a/packaging/ail.spec +++ b/packaging/ail.spec @@ -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 diff --git a/src/ail_vconf.c b/src/ail_vconf.c index 8fa3088..a1471c3 100644 --- a/src/ail_vconf.c +++ b/src/ail_vconf.c @@ -29,6 +29,7 @@ #include #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; -- 2.7.4