Remove hardcoded path for multiuser support 19/16619/1 accepted/tizen/generic accepted/tizen/generic/20140226.073837 accepted/tizen/ivi/20140226.210725 accepted/tizen/mobile/20140227.072251 submit/accepted/tizen_mobile/20140304.192339 submit/accepted/tizen_mobile/20140304.235300 submit/tizen/20140226.000639 submit/tizen/20140304.235326 submit/tizen/mobile/20140225.092722
authorJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Mon, 13 Jan 2014 09:37:35 +0000 (10:37 +0100)
committerJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Wed, 19 Feb 2014 15:18:00 +0000 (16:18 +0100)
Bug-Tizen: PTREL-355

Change-Id: If0c7c6cb70fba81bc8ef8518c5334ce0b4e9a823
Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
CMakeLists.txt
include/util.h
packaging/libprovider.spec

index e2e95dc..156f4a4 100644 (file)
@@ -27,6 +27,7 @@ pkg_check_modules(pkgs REQUIRED
        xfixes
        dri2proto
        xdamage
+       libtzplatform-config
        livebox-service # To import the error code
 )
 
@@ -49,7 +50,6 @@ ADD_DEFINITIONS("-D_USE_ECORE_TIME_GET")
 ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
 ADD_DEFINITIONS("-DLOG_TAG=\"PROVIDER\"")
 ADD_DEFINITIONS("-DNDEBUG")
-ADD_DEFINITIONS("-DSLAVE_SOCKET=\"/opt/usr/share/live_magazine/.slave.socket\"")
 #ADD_DEFINITIONS("-DFLOG")
 
 ADD_LIBRARY(${PROJECT_NAME} SHARED
index 7fef2eb..537b91b 100644 (file)
@@ -13,6 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+#include <tzplatform_config.h>
 
 extern double util_timestamp(void);
 extern const char *util_basename(const char *name);
@@ -21,6 +22,7 @@ extern const char *util_uri_to_path(const char *uri);
 #define SCHEMA_FILE    "file://"
 #define SCHEMA_PIXMAP  "pixmap://"
 #define SCHEMA_SHM     "shm://"
+#define SLAVE_SOCKET tzplatform_mkpath(TZ_USER_SHARE,"live_magazine/.slave.socket")
 
 #define container_of(ptr, type, member) \
         ({ const typeof( ((type *)0)->member ) *__mptr = (ptr);    \
index 866d39f..4f29e6a 100644 (file)
@@ -20,6 +20,8 @@ BuildRequires: pkgconfig(xfixes)
 BuildRequires: pkgconfig(dri2proto)
 BuildRequires: pkgconfig(xdamage)
 BuildRequires: pkgconfig(livebox-service)
+BuildRequires: pkgconfig(libtzplatform-config)
+Requires:      libtzplatform-config
 
 %description
 Supporting the commnuncation channel with master service for livebox remote view.