Apply force option to trigger the updates forcely 55/13355/2
authorSung-jae Park <nicesj.park@samsung.com>
Wed, 4 Dec 2013 04:59:49 +0000 (13:59 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Wed, 4 Dec 2013 05:37:26 +0000 (14:37 +0900)
Change-Id: Ifc68719d3ed8f852ed9c39f2981a20da55d45806

include/livebox.h
packaging/liblivebox-viewer.spec
src/livebox.c

index 3661b04..876d6e3 100644 (file)
@@ -1221,6 +1221,7 @@ extern int livebox_unsubscribe_group(const char *cluster, const char *category);
  * \remarks N/A
  * \param[in] cluster Cluster ID
  * \param[in] category Sub-cluster ID
+ * \param[in] force 1 if the boxes should be updated even if they are paused
  * \return int
  * \retval LB_STATUS_ERROR_INVALID
  * \retval LB_STATUS_ERROR_FAULT
@@ -1229,13 +1230,14 @@ extern int livebox_unsubscribe_group(const char *cluster, const char *category);
  * \post N/A
  * \see N/A
  */
-extern int livebox_refresh_group(const char *cluster, const char *category);
+extern int livebox_refresh_group(const char *cluster, const char *category, int force);
 
 /*!
  * \brief Refresh a livebox
  * \details N/A
  * \remarks N/A
  * \param[in] handler
+ * \param[in] force 1 if the box should be updated even if it is paused
  * \return int
  * \retval LB_STATUS_ERROR_INVALID
  * \retval LB_STATUS_ERROR_FAULT
@@ -1244,7 +1246,7 @@ extern int livebox_refresh_group(const char *cluster, const char *category);
  * \post N/A
  * \see N/A
  */
-extern int livebox_refresh(struct livebox *handler);
+extern int livebox_refresh(struct livebox *handler, int force);
 
 /*!
  * \brief Pixmap Id of a livebox content
index e8376e5..a82f2d7 100644 (file)
@@ -1,6 +1,6 @@
 Name: liblivebox-viewer
 Summary: Library for developing the application
-Version: 0.14.8
+Version: 0.14.9
 Release: 1
 Group: HomeTF/Livebox
 License: Flora
index 743ae95..897b0c6 100644 (file)
@@ -2494,7 +2494,7 @@ EAPI int livebox_unsubscribe_group(const char *cluster, const char *category)
        return master_rpc_request_only(NULL, packet);
 }
 
-EAPI int livebox_refresh(struct livebox *handler)
+EAPI int livebox_refresh(struct livebox *handler, int force)
 {
        struct packet *packet;
 
@@ -2507,7 +2507,7 @@ EAPI int livebox_refresh(struct livebox *handler)
                return LB_STATUS_ERROR_INVALID;
        }
 
-       packet = packet_create_noack("update", "ss", handler->pkgname, handler->id);
+       packet = packet_create_noack("update", "ssi", handler->pkgname, handler->id, force);
        if (!packet) {
                ErrPrint("Failed to create a packet\n");
                return LB_STATUS_ERROR_FAULT;
@@ -2516,7 +2516,7 @@ EAPI int livebox_refresh(struct livebox *handler)
        return master_rpc_request_only(handler, packet);
 }
 
-EAPI int livebox_refresh_group(const char *cluster, const char *category)
+EAPI int livebox_refresh_group(const char *cluster, const char *category, int force)
 {
        struct packet *packet;
 
@@ -2525,7 +2525,7 @@ EAPI int livebox_refresh_group(const char *cluster, const char *category)
                return LB_STATUS_ERROR_INVALID;
        }
 
-       packet = packet_create_noack("refresh_group", "ss", cluster, category);
+       packet = packet_create_noack("refresh_group", "ssi", cluster, category, force);
        if (!packet) {
                ErrPrint("Failed to create a packet\n");
                return LB_STATUS_ERROR_FAULT;