* \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
* \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
* \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
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;
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;
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;
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;