Sync the g_conf with master and provider-app, livebox
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 19 Jun 2014 06:00:36 +0000 (15:00 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 19 Jun 2014 06:51:36 +0000 (15:51 +0900)
Change-Id: I532fe9aaa1a17fae3515c2e280086b422e22ecb8

include/conf.h
src/conf.c
src/so_handler.c

index af7b620..c9a6fe0 100644 (file)
@@ -27,6 +27,7 @@ struct conf {
                char *abi;
                char *pd_group;
                double period;
+               int pixels;
        } default_conf;
 
        struct {
@@ -67,7 +68,6 @@ struct conf {
                char *reader;
                char *always;
                char *db;
-               char *module;
                char *input;
        } path;
 
@@ -77,6 +77,9 @@ struct conf {
 
        double ping_time;
 
+       char *vconf_sys_cluster;
+       int max_pended_ctx_events;
+
        int use_sw_backend;
        char *provider_method;
        int debug_mode;
@@ -84,6 +87,14 @@ struct conf {
        int com_core_thread;
        int use_xmonitor;
        int premultiplied;
+
+       double scale_width_factor;
+       double scale_height_factor;
+
+       double pd_request_timeout;
+
+       char *emergency_disk;
+       char *services;
        int auto_align;
 };
 
index 04770d7..47cf6c6 100644 (file)
@@ -79,7 +79,6 @@ HAPI struct conf g_conf = {
                 */
                .conf = "/opt/usr/live/%s/etc/%s.conf",
                .script = "/opt/usr/live/%s/res/script/%s.edj",
-               .module = "/opt/usr/live/%s/libexec/liblive-%s.so",
                .input = "/dev/input/event1",
        },
 
index 7c33f01..d41eff7 100644 (file)
@@ -65,30 +65,6 @@ static inline char *so_adaptor_alloc(const char *abi)
        return strdup("/usr/lib/liblivebox-cpp.so");
 }
 
-static inline char *old_style_path(const char *pkgname)
-{
-       char *path;
-       int path_len;
-       int ret;
-
-       path_len = (strlen(pkgname) * 2) + strlen(MODULE_PATH);
-       path = malloc(path_len);
-       if (!path) {
-               ErrPrint("Memory: %s\n", strerror(errno));
-               return NULL;
-       }
-
-       ret = snprintf(path, path_len, MODULE_PATH, pkgname, pkgname);
-       if (ret < 0) {
-               ErrPrint("Fault: %s\n", strerror(errno));
-               free(path);
-               return NULL;
-       }
-
-       DbgPrint("Fallback to old style libexec path (%s)\n", path);
-       return path;
-}
-
 static inline char *so_path_alloc(const char *pkgname)
 {
        char *lb_pkgname;
@@ -96,7 +72,8 @@ static inline char *so_path_alloc(const char *pkgname)
 
        lb_pkgname = livebox_service_pkgname(pkgname);
        if (!lb_pkgname) {
-               path = old_style_path(pkgname);
+               ErrPrint("Failed to get package name\n");
+               return NULL;
        } else {
                path = livebox_service_libexec(lb_pkgname);
                free(lb_pkgname);