* PD is not able to resized by the client.
* PD is only can be managed by the provider.
* So the PD has no private resized event handler.
- * Notify it via global event handler.
+ * Notify it via global event handler only.
*/
if (status == 0) {
lb_set_pdsize(handler, w, h);
ErrPrint("This is not possible. PD Size is changed but the return value is not ZERO\n");
}
} else {
- DbgPrint("LB is resized\n");
if (status == 0) {
- DbgPrint("Livebox size is updated (%dx%d)\n", w, h);
+ DbgPrint("LB is successfully resized (%dx%d)\n", w, h);
lb_set_size(handler, w, h);
/*!
+ * \NOTE
* If there is a created LB FB,
- * Update it too
+ * Update it too.
*/
if (lb_get_lb_fb(handler))
lb_set_lb_fb(handler, id);
+ /*!
+ * \NOTE
+ * I cannot believe client.
+ * So I added some log before & after call the user callback.
+ */
if (handler->size_changed_cb) {
- DbgPrint("Call the size changed callback\n");
handler->size_changed_cb(handler, status, handler->size_cbdata);
handler->size_changed_cb = NULL;
handler->size_cbdata = NULL;
} else {
- DbgPrint("Call the global size changed callback\n");
lb_invoke_event_handler(handler, LB_EVENT_LB_SIZE_CHANGED);
- DbgPrint("Size changed callback done\n");
}
} else {
- DbgPrint("Livebox size is not changed: %dx%d, %d\n", w, h, status);
+ DbgPrint("LB is not resized: %dx%d (%d)\n", w, h, status);
+ if (handler->size_changed_cb) {
+ handler->size_changed_cb(handler, status, handler->size_cbdata);
+
+ handler->size_changed_cb = NULL;
+ handler->size_cbdata = NULL;
+ }
}
}
goto out;
}
+ DbgPrint("Update period is changed? %lf (%d)\n", period, status);
if (status == 0)
lb_set_period(handler, period);
goto out;
}
+ DbgPrint("Group is changed? [%s] / [%s] (%d)\n", cluster, category, status);
if (status == 0)
lb_set_group(handler, cluster, category);
if (s_info.reconnector == 0)
ErrPrint("Failed to fire the reconnector\n");
- ErrPrint("Try this again 10 secs later\n");
+ ErrPrint("Try this again A sec later\n");
return;
}
return -EINVAL;
}
+ if (handler->period_changed_cb) {
+ ErrPrint("Previous request for changing period is not finished\n");
+ return -EBUSY;
+ }
+
if (!handler->is_user) {
ErrPrint("CA Livebox is not able to change the period\n");
return -EPERM;
return -EALREADY;
}
- if (handler->period_changed_cb)
- DbgPrint("Already requested\n");
-
packet = packet_create("set_period", "ssd", handler->pkgname, handler->id, period);
if (!packet) {
ErrPrint("Failed to build a packet %s\n", handler->pkgname);
return -EINVAL;
}
+ if (handler->size_changed_cb) {
+ ErrPrint("Previous resize request is not finished yet\n");
+ return -EBUSY;
+ }
+
if (!handler->is_user) {
ErrPrint("CA Livebox is not able to be resized\n");
return -EPERM;
return -EALREADY;
}
- if (handler->size_changed_cb)
- DbgPrint("Already pended\n");
-
packet = packet_create("resize", "ssii", handler->pkgname, handler->id, w, h);
if (!packet) {
ErrPrint("Failed to build param\n");
return -EINVAL;
}
+ if (handler->group_changed_cb) {
+ ErrPrint("Previous group changing request is not finished yet\n");
+ return -EBUSY;
+ }
+
if (!handler->is_user) {
ErrPrint("CA Livebox is not able to change the group\n");
return -EPERM;
return -EALREADY;
}
- if (handler->group_changed_cb)
- DbgPrint("Already sent\n");
-
packet = packet_create("change_group", "ssss", handler->pkgname, handler->id, cluster, category);
if (!packet) {
ErrPrint("Failed to build a param\n");
return -EINVAL;
}
+ if (handler->pinup_cb) {
+ ErrPrint("Previous pinup request is not finished\n");
+ return -EBUSY;
+ }
+
if (handler->is_pinned_up == flag) {
DbgPrint("No changes\n");
return -EALREADY;
}
- if (handler->pinup_cb)
- DbgPrint("Already sent\n");
-
packet = packet_create("pinup_changed", "ssi", handler->pkgname, handler->id, flag);
if (!packet) {
ErrPrint("Failed to build a param\n");