Replace livebox with dynamicbox
authorSung-jae Park <nicesj.park@samsung.com>
Fri, 26 Sep 2014 07:44:27 +0000 (16:44 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Fri, 26 Sep 2014 07:44:27 +0000 (16:44 +0900)
[model] Redwood,Kiran,B3(Wearable)
[binary_type] AP
[customer] Docomo/Orange/ATT/Open
[issue#] N/A
[problem]
[cause]
[solution]
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: I63bd51cf321aee9d93edb3c29e855d1d1f72fa9b

include/dynamicbox.h
src/dynamicbox.c

index 17b40fa..5ba7a84 100644 (file)
@@ -309,56 +309,56 @@ typedef struct dynamicbox_buffer *dynamicbox_buffer_h;
  * @brief Return values of dynamicbox programming interfaces: Operation is successfully done.
  * @since_tizen 2.3
  */
-extern const int DONE;
+extern const int DBOX_DONE;
 
 /**
  * @internal
  * @brief Return values of dynamicbox programming interfaces: Contents are updated.
  * @since_tizen 2.3
  */
-extern const int OUTPUT_UPDATED;
+extern const int DBOX_OUTPUT_UPDATED;
 
 /**
  * @internal
  * @brief Return values of dynamicbox programming interfaces: Need to call the dynamicbox_need_to_update and dynamicbox_update_content.
  * @since_tizen 2.3
  */
-extern const int NEED_TO_SCHEDULE;
+extern const int DBOX_NEED_TO_SCHEDULE;
 
 /**
  * @internal
  * @brief Return values of dynamicbox programming interfaces: Need to do force update.
  * @since_tizen 2.3
  */
-extern const int FORCE_TO_SCHEDULE;
+extern const int DBOX_FORCE_TO_SCHEDULE;
 
 /**
  * @internal
  * @brief Return values of dynamicbox programming interfaces: Need to create a new instance.
  * @since_tizen 2.3
  */
-extern const int NEED_TO_CREATE;
+extern const int DBOX_NEED_TO_CREATE;
 
 /**
  * @internal
  * @brief Return values of dynamicbox programming interfaces: Need to destroy this instance.
  * @since_tizen 2.3
  */
-extern const int NEED_TO_DESTROY;
+extern const int DBOX_NEED_TO_DESTROY;
 
 /**
  * @internal
  * @brief Return values of dynamicbox programming interfaces: Need to update.
  * @since_tizen 2.3
  */
-extern const int NEED_TO_UPDATE;
+extern const int DBOX_NEED_TO_UPDATE;
 
 /**
  * @internal
  * @brief Return values of dynamicbox programming interfaces: Using network.
  * @since_tizen 2.3
  */
-extern const int USE_NET;
+extern const int DBOX_USE_NET;
 
 /**
  * @internal
index cc28ef2..f0e6bd9 100644 (file)
@@ -198,8 +198,8 @@ static int send_dbox_updated(const char *pkgname, const char *id, int w, int h)
 
        if (s_info.is_slave < 0) {
                /* Must to be checked the slave function first. */
-               s_info.updated.slave.dbox = dlsym(RTLD_DEFAULT, "livebox_send_updated");
-               s_info.updated.slave.gbar = dlsym(RTLD_DEFAULT, "livebox_send_desc_updated");
+               s_info.updated.slave.dbox = dlsym(RTLD_DEFAULT, "dynamicbox_send_updated");
+               s_info.updated.slave.gbar = dlsym(RTLD_DEFAULT, "dynamicbox_send_desc_updated");
                if (s_info.updated.slave.dbox && s_info.updated.slave.gbar) {
                        s_info.is_slave = 1;
                        DbgPrint("Slave detected\n");
@@ -230,8 +230,8 @@ static int send_gbar_updated(const char *pkgname, const char *id, const char *de
 
        if (s_info.is_slave < 0) {
                /* Must to be checked the slave function first. */
-               s_info.updated.slave.dbox = dlsym(RTLD_DEFAULT, "livebox_send_updated");
-               s_info.updated.slave.gbar = dlsym(RTLD_DEFAULT, "livebox_send_desc_updated");
+               s_info.updated.slave.dbox = dlsym(RTLD_DEFAULT, "dynamicbox_send_updated");
+               s_info.updated.slave.gbar = dlsym(RTLD_DEFAULT, "dynamicbox_send_desc_updated");
                if (s_info.updated.slave.dbox && s_info.updated.slave.gbar) {
                        s_info.is_slave = 1;
                        DbgPrint("Slave detected\n");
@@ -733,9 +733,9 @@ PUBLIC dynamicbox_buffer_h dynamicbox_acquire_buffer(const char *filename, int i
        }
 
        if (!s_info.find_pkgname) {
-               s_info.find_pkgname = dlsym(RTLD_DEFAULT, "livebox_find_pkgname");
+               s_info.find_pkgname = dlsym(RTLD_DEFAULT, "dynamicbox_find_pkgname");
                if (!s_info.find_pkgname) {
-                       ErrPrint("Failed to find a \"livebox_find_pkgname\"\n");
+                       ErrPrint("Failed to find a \"dynamicbox_find_pkgname\"\n");
                        free(user_data);
                        free(uri);
                        return NULL;
@@ -784,9 +784,9 @@ PUBLIC int dynamicbox_request_update(const char *filename)
        }
 
        if (!s_info.request_update_by_id) {
-               s_info.request_update_by_id = dlsym(RTLD_DEFAULT, "livebox_request_update_by_id");
+               s_info.request_update_by_id = dlsym(RTLD_DEFAULT, "dynamicbox_request_update_by_id");
                if (!s_info.request_update_by_id) {
-                       ErrPrint("\"livebox_request_update_by_id\" is not exists\n");
+                       ErrPrint("\"dynamicbox_request_update_by_id\" is not exists\n");
                        free(uri);
                        return DBOX_STATUS_ERROR_FAULT;
                }
@@ -799,14 +799,14 @@ PUBLIC int dynamicbox_request_update(const char *filename)
 PUBLIC int dynamicbox_conf_auto_align(void)
 {
        if (!s_info.conf) {
-               struct conf *(*livebox_conf_get_conf)(void);
-               livebox_conf_get_conf = dlsym(RTLD_DEFAULT, "livebox_conf_get_conf");
-               if (!livebox_conf_get_conf) {
+               struct conf *(*dynamicbox_conf_get_conf)(void);
+               dynamicbox_conf_get_conf = dlsym(RTLD_DEFAULT, "dynamicbox_conf_get_conf");
+               if (!dynamicbox_conf_get_conf) {
                        ErrPrint("g_conf is not found\n");
                        return 1;
                }
 
-               s_info.conf = livebox_conf_get_conf();
+               s_info.conf = dynamicbox_conf_get_conf();
                if (!s_info.conf) {
                        ErrPrint("g_conf is not found\n");
                        return 1;
@@ -821,14 +821,14 @@ PUBLIC int dynamicbox_conf_auto_align(void)
 PUBLIC int dynamicbox_conf_premultiplied_alpha(void)
 {
        if (!s_info.conf) {
-               struct conf *(*livebox_conf_get_conf)(void);
-               livebox_conf_get_conf = dlsym(RTLD_DEFAULT, "livebox_conf_get_conf");
-               if (!livebox_conf_get_conf) {
+               struct conf *(*dynamicbox_conf_get_conf)(void);
+               dynamicbox_conf_get_conf = dlsym(RTLD_DEFAULT, "dynamicbox_conf_get_conf");
+               if (!dynamicbox_conf_get_conf) {
                        ErrPrint("g_conf is not found\n");
                        return 1;
                }
 
-               s_info.conf = livebox_conf_get_conf();
+               s_info.conf = dynamicbox_conf_get_conf();
                if (!s_info.conf) {
                        ErrPrint("g_conf is not found\n");
                        return 1;
@@ -1132,7 +1132,7 @@ PUBLIC int dynamicbox_buffer_stride(dynamicbox_buffer_h handle)
 PUBLIC int dynamicbox_content_is_updated(const char *filename, int is_gbar)
 {
        if (!s_info.trigger_update_monitor) {
-               s_info.trigger_update_monitor = dlsym(RTLD_DEFAULT, "livebox_trigger_update_monitor");
+               s_info.trigger_update_monitor = dlsym(RTLD_DEFAULT, "dynamicbox_trigger_update_monitor");
                if (!s_info.trigger_update_monitor) {
                        ErrPrint("Trigger update monitor function is not exists\n");
                        return DBOX_STATUS_ERROR_FAULT;
@@ -1217,9 +1217,9 @@ PUBLIC int dynamicbox_set_extra_info(const char *id, const char *content, const
        }
 
        if (!s_info.find_pkgname) {
-               s_info.find_pkgname = dlsym(RTLD_DEFAULT, "livebox_find_pkgname");
+               s_info.find_pkgname = dlsym(RTLD_DEFAULT, "dynamicbox_find_pkgname");
                if (!s_info.find_pkgname) {
-                       ErrPrint("Failed to find a \"livebox_find_pkgname\"\n");
+                       ErrPrint("Failed to find a \"dynamicbox_find_pkgname\"\n");
                        free(uri);
                        return DBOX_STATUS_ERROR_FAULT;
                }
@@ -1313,9 +1313,9 @@ PUBLIC int dynamicbox_set_extra_info(const char *id, const char *content, const
        free(uri);
 
        if (!s_info.update_extra_info) {
-               s_info.update_extra_info = dlsym(RTLD_DEFAULT, "livebox_update_extra_info");
+               s_info.update_extra_info = dlsym(RTLD_DEFAULT, "dynamicbox_update_extra_info");
                if (!s_info.update_extra_info) {
-                       ErrPrint("Failed to find a \"livebox_update_extra_info\"\n");
+                       ErrPrint("Failed to find a \"dynamicbox_update_extra_info\"\n");
                        return DBOX_STATUS_ERROR_INVALID_PARAMETER;
                }
        }