double x;
double y;
double timestamp;
- int ret;
struct livebox_buffer *info;
if (packet_get(packet, "ssiiddd", &pkgname, &id, &w, &h, ×tamp, &x, &y) != 7) {
ErrPrint("Invalid packet\n");
- ret = -EINVAL;
goto out;
}
info = provider_buffer_find_buffer(TYPE_LB, pkgname, id);
if (!info) {
ErrPrint("Failed to find a buffer [%s:%s]\n", pkgname, id);
- ret = -ENOENT;
goto out;
}
if (info->handler)
- ret = info->handler(info, BUFFER_EVENT_ENTER, timestamp, x, y, info->data);
- else
- ret = -ENOSYS;
+ (void)info->handler(info, BUFFER_EVENT_ENTER, timestamp, x, y, info->data);
out:
return NULL;
double x;
double y;
double timestamp;
- int ret;
struct livebox_buffer *info;
if (packet_get(packet, "ssiiddd", &pkgname, &id, &w, &h, ×tamp, &x, &y) != 7) {
ErrPrint("Invalid packet\n");
- ret = -EINVAL;
goto out;
}
info = provider_buffer_find_buffer(TYPE_LB, pkgname, id);
if (!info) {
ErrPrint("Failed to find a buffer [%s:%s]\n", pkgname, id);
- ret = -ENOENT;
goto out;
}
if (info->handler)
- ret = info->handler(info, BUFFER_EVENT_LEAVE, timestamp, x, y, info->data);
- else
- ret = -ENOSYS;
+ (void)info->handler(info, BUFFER_EVENT_LEAVE, timestamp, x, y, info->data);
out:
return NULL;
double x;
double y;
double timestamp;
- int ret;
struct livebox_buffer *info;
if (packet_get(packet, "ssiiddd", &pkgname, &id, &w, &h, ×tamp, &x, &y) != 7) {
ErrPrint("Invalid packet\n");
- ret = -EINVAL;
goto out;
}
info = provider_buffer_find_buffer(TYPE_LB, pkgname, id);
if (!info) {
ErrPrint("Failed to find a buffer [%s:%s]\n", pkgname, id);
- ret = -ENOENT;
goto out;
}
if (info->handler)
- ret = info->handler(info, BUFFER_EVENT_DOWN, timestamp, x, y, info->data);
- else
- ret = -ENOSYS;
+ (void)info->handler(info, BUFFER_EVENT_DOWN, timestamp, x, y, info->data);
out:
return NULL;
double x;
double y;
double timestamp;
- int ret;
struct livebox_buffer *info;
if (packet_get(packet, "ssiiddd", &pkgname, &id, &w, &h, ×tamp, &x, &y) != 7) {
ErrPrint("Invalid packet\n");
- ret = -EINVAL;
goto out;
}
info = provider_buffer_find_buffer(TYPE_LB, pkgname, id);
if (!info) {
ErrPrint("Failed to find a buffer [%s:%s]\n", pkgname, id);
- ret = -ENOENT;
goto out;
}
if (info->handler)
- ret = info->handler(info, BUFFER_EVENT_UP, timestamp, x, y, info->data);
- else
- ret = -ENOSYS;
+ (void)info->handler(info, BUFFER_EVENT_UP, timestamp, x, y, info->data);
out:
return NULL;
double x;
double y;
double timestamp;
- int ret;
struct livebox_buffer *info;
if (packet_get(packet, "ssiiddd", &pkgname, &id, &w, &h, ×tamp, &x, &y) != 7) {
ErrPrint("Invalid packet\n");
- ret = -EINVAL;
goto out;
}
info = provider_buffer_find_buffer(TYPE_LB, pkgname, id);
if (!info) {
ErrPrint("Failed to find a buffer [%s:%s]\n", pkgname, id);
- ret = -ENOENT;
goto out;
}
if (info->handler)
- ret = info->handler(info, BUFFER_EVENT_MOVE, timestamp, x, y, info->data);
- else
- ret = -ENOSYS;
+ (void)info->handler(info, BUFFER_EVENT_MOVE, timestamp, x, y, info->data);
out:
return NULL;
double x;
double y;
double timestamp;
- int ret;
struct livebox_buffer *info;
if (packet_get(packet, "ssiiddd", &pkgname, &id, &w, &h, ×tamp, &x, &y) != 7) {
ErrPrint("Invalid packet\n");
- ret = -EINVAL;
goto out;
}
info = provider_buffer_find_buffer(TYPE_PD, pkgname, id);
if (!info) {
ErrPrint("Failed to find a buffer [%s:%s]\n", pkgname, id);
- ret = -ENOENT;
goto out;
}
if (info->handler)
- ret = info->handler(info, BUFFER_EVENT_ENTER, timestamp, x, y, info->data);
- else
- ret = -ENOSYS;
+ (void)info->handler(info, BUFFER_EVENT_ENTER, timestamp, x, y, info->data);
out:
return NULL;
double x;
double y;
double timestamp;
- int ret;
struct livebox_buffer *info;
if (packet_get(packet, "ssiiddd", &pkgname, &id, &w, &h, ×tamp, &x, &y) != 7) {
ErrPrint("Invalid packet\n");
- ret = -EINVAL;
goto out;
}
info = provider_buffer_find_buffer(TYPE_PD, pkgname, id);
if (!info) {
ErrPrint("Failed to find a buffer [%s:%s]\n", pkgname, id);
- ret = -ENOENT;
goto out;
}
if (info->handler)
- ret = info->handler(info, BUFFER_EVENT_LEAVE, timestamp, x, y, info->data);
- else
- ret = -ENOSYS;
+ (void)info->handler(info, BUFFER_EVENT_LEAVE, timestamp, x, y, info->data);
out:
return NULL;
double x;
double y;
double timestamp;
- int ret;
struct livebox_buffer *info;
if (packet_get(packet, "ssiiddd", &pkgname, &id, &w, &h, ×tamp, &x, &y) != 7) {
ErrPrint("Invalid packet\n");
- ret = -EINVAL;
goto out;
}
info = provider_buffer_find_buffer(TYPE_PD, pkgname, id);
if (!info) {
ErrPrint("Failed to find a buffer [%s:%s]\n", pkgname, id);
- ret = -ENOENT;
goto out;
}
if (info->handler)
- ret = info->handler(info, BUFFER_EVENT_DOWN, timestamp, x, y, info->data);
- else
- ret = -ENOSYS;
+ (void)info->handler(info, BUFFER_EVENT_DOWN, timestamp, x, y, info->data);
out:
return NULL;
double x;
double y;
double timestamp;
- int ret;
struct livebox_buffer *info;
if (packet_get(packet, "ssiiddd", &pkgname, &id, &w, &h, ×tamp, &x, &y) != 7) {
ErrPrint("Invalid packet\n");
- ret = -EINVAL;
goto out;
}
info = provider_buffer_find_buffer(TYPE_PD, pkgname, id);
if (!info) {
ErrPrint("Failed to find a buffer [%s:%s]\n", pkgname, id);
- ret = -ENOENT;
goto out;
}
if (info->handler)
- ret = info->handler(info, BUFFER_EVENT_UP, timestamp, x, y, info->data);
- else
- ret = -ENOSYS;
+ (void)info->handler(info, BUFFER_EVENT_UP, timestamp, x, y, info->data);
out:
return NULL;
double x;
double y;
double timestamp;
- int ret;
struct livebox_buffer *info;
- ret = packet_get(packet, "ssiiddd", &pkgname, &id, &w, &h, ×tamp, &x, &y);
- if (ret != 7) {
+ if (packet_get(packet, "ssiiddd", &pkgname, &id, &w, &h, ×tamp, &x, &y) != 7) {
ErrPrint("Invalid packet\n");
- ret = -EINVAL;
goto out;
}
info = provider_buffer_find_buffer(TYPE_PD, pkgname, id);
if (!info) {
ErrPrint("Failed to find a buffer [%s:%s]\n", pkgname, id);
- ret = -ENOENT;
goto out;
}
if (info->handler)
- ret = info->handler(info, BUFFER_EVENT_MOVE, timestamp, x, y, info->data);
- else
- ret = -ENOSYS;
+ (void)info->handler(info, BUFFER_EVENT_MOVE, timestamp, x, y, info->data);
out:
return NULL;