INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED
dlog
+ livebox-service
)
FOREACH(flag ${pkgs_CFLAGS})
+livebox (0.0.9) unstable; urgency=low
+
+ * Git: slp/pkgs/l/livebox
+ * Tag: livebox_0.0.9
+
+ -- Sung-jae Park <nicesj.park@samsung.com> Wed, 10 Oct 2012 14:20:42 +0900
+
livebox (0.0.8) unstable; urgency=low
* Git: slp/pkgs/l/livebox
*/
extern char *livebox_util_nl2br(const char *str);
+/*!
+ * \brief Get the root path of given application package.
+ * \param[in] pkgname application package name
+ * \param[out] char* Allocated string, root path of given package.
+ */
+extern char *livebox_root_path(const char *pkgname);
#ifdef __cplusplus
}
#endif
Name: liblivebox
Summary: Library for the development of a livebox
-Version: 0.0.8
+Version: 0.0.9
Release: 1
Group: main/app
License: Samsung Proprietary License
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake, gettext-tools
BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(livebox-service)
%description
Livebox development library
#include <libgen.h>
#include <dlog.h>
+#include <livebox-service.h>
#include "debug.h"
#include "livebox.h"
return -ENOENT;
}
+EAPI char *livebox_root_path(const char *pkgname)
+{
+ char *ret;
+ char *appid;
+ int len;
+
+ appid = livebox_service_appid(pkgname);
+ if (!appid)
+ return NULL;
+
+ len = strlen("/opt/apps//") + strlen(appid) + 1;
+ ret = malloc(len);
+ if (!ret) {
+ DbgPrint("Heap: %s\n", strerror(errno));
+ return NULL;
+ }
+
+ snprintf(ret, len, "/opt/apps/%s/", appid);
+ return ret;
+}
+
/* End of a file */