#include <dlog.h>
#include <livebox-errno.h>
+#include <livebox-service.h>
#include "dlist.h"
#include "util.h"
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_ACTION_UP, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_ACTION_DOWN, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_SCROLL_DOWN, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_SCROLL_MOVE, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_SCROLL_UP, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_UNHIGHLIGHT, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_HIGHLIGHT, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_HIGHLIGHT_PREV, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_HIGHLIGHT_NEXT, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_ACTIVATE, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_UNHIGHLIGHT, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_HIGHLIGHT, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_HIGHLIGHT_PREV, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_HIGHLIGHT_NEXT, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_ACTION_UP, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_ACTION_DOWN, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_SCROLL_DOWN, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_SCROLL_MOVE, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_SCROLL_UP, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out:
ErrPrint("Failed to get buffer size[%s:%s]\n", pkgname, id);
(void)info->handler(info, BUFFER_EVENT_ACTIVATE, timestamp, (double)x / (double)w, (double)y / (double)h, info->data);
+ } else {
+ /* Event handler is not ready */
+ (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
}
out: