summaryrefslogtreecommitdiff
path: root/src/livebox.c
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-07-15 12:46:41 +0900
committerSung-jae Park <nicesj.park@samsung.com>2013-07-15 12:46:41 +0900
commit8c74498dd4116b77ccb257501e2e745a22de0e5f (patch)
treecd3f7219682107dc31dabb46f91cd83cd0e27451 /src/livebox.c
parent501ae85f873ed9345c519d6a3d589d9262aa8e8c (diff)
downloadlivebox-f4b282406b52d58d19af4454bacfa56b846cc5ad.tar.gz
livebox-f4b282406b52d58d19af4454bacfa56b846cc5ad.tar.bz2
livebox-f4b282406b52d58d19af4454bacfa56b846cc5ad.zip
Change-Id: I6cfd6d53886765d31b675892176d993a8309e272
Diffstat (limited to 'src/livebox.c')
-rw-r--r--src/livebox.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/livebox.c b/src/livebox.c
index f6a6732..adf4c25 100644
--- a/src/livebox.c
+++ b/src/livebox.c
@@ -473,7 +473,16 @@ static inline int event_handler_wrapper(struct livebox_buffer *buffer, enum buff
int ret;
pkgname = provider_buffer_pkgname(buffer);
- id = provider_buffer_pkgname(buffer);
+ if (!pkgname) {
+ ErrPrint("pkgname is not valid\n");
+ return LB_STATUS_ERROR_INVALID;
+ }
+
+ id = provider_buffer_id(buffer);
+ if (!id) {
+ ErrPrint("id is not valid[%s]\n", pkgname);
+ return LB_STATUS_ERROR_INVALID;
+ }
ret = cbdata->handler(buffer, event, timestamp, x, y, cbdata->cbdata);
@@ -488,6 +497,7 @@ static inline int event_handler_wrapper(struct livebox_buffer *buffer, enum buff
case BUFFER_EVENT_SCROLL_MOVE:
case BUFFER_EVENT_SCROLL_DOWN:
case BUFFER_EVENT_UNHIGHLIGHT:
+ DbgPrint("Accessibility event: %d\n", event);
if (ret < 0)
(void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
else