From d1fb23947d9d14a6bec5d152a304451f573950a5 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Wed, 25 Jul 2012 16:27:51 +0900 Subject: [PATCH] Add log to figure out the event blocking bug Change-Id: I502a3d8498afb4abe2bdf0d92b2450eb2c143721 --- debian/changelog | 7 +++++++ packaging/com.samsung.data-provider-slave.spec | 2 +- src/client.c | 15 +++++++++++++-- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index ed981f3..6b44a48 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +data-provider-slave (0.3.6) unstable; urgency=low + + * Git: slp/pkgs/d/data-provider-slave + * Tag: data-provider-slave_0.3.6 + + -- Sung-jae Park Wed, 25 Jul 2012 16:39:43 +0900 + data-provider-slave (0.3.5) unstable; urgency=low * Git: slp/pkgs/d/data-provider-slave diff --git a/packaging/com.samsung.data-provider-slave.spec b/packaging/com.samsung.data-provider-slave.spec index c70e056..9e912aa 100644 --- a/packaging/com.samsung.data-provider-slave.spec +++ b/packaging/com.samsung.data-provider-slave.spec @@ -1,6 +1,6 @@ Name: com.samsung.data-provider-slave Summary: Slave data provider -Version: 0.3.5 +Version: 0.3.6 Release: 1 Group: main/app License: Samsung Proprietary License diff --git a/src/client.c b/src/client.c index 83c6d9c..496a273 100644 --- a/src/client.c +++ b/src/client.c @@ -109,6 +109,7 @@ static int method_renew(struct event_arg *arg) static int method_delete(struct event_arg *arg) { int ret; + DbgPrint("pkgname[%s] id[%s]\n", arg->pkgname, arg->id); ret = livebox_destroy(arg->pkgname, arg->id); return ret; } @@ -120,6 +121,7 @@ static int method_content_event(struct event_arg *arg) info = arg->info.content_event.info; + DbgPrint("pkgname[%s] id[%s] emission[%s] source[%s]\n", arg->pkgname, arg->id, arg->info.content_event.emission, arg->info.content_event.source); ret = livebox_script_event(arg->pkgname, arg->id, arg->info.content_event.emission, arg->info.content_event.source, &info); @@ -130,6 +132,10 @@ static int method_clicked(struct event_arg *arg) { int ret; + DbgPrint("pkgname[%s] id[%s] event[%s] timestamp[%lf] x[%lf] y[%lf]\n", + arg->pkgname, arg->id, + arg->info.clicked.event, arg->info.clicked.timestamp, + arg->info.clicked.x, arg->info.clicked.y); ret = livebox_clicked(arg->pkgname, arg->id, arg->info.clicked.event, arg->info.clicked.timestamp, arg->info.clicked.x, arg->info.clicked.y); @@ -144,6 +150,7 @@ static int method_text_signal(struct event_arg *arg) info = arg->info.text_signal.info; + DbgPrint("pkgname[%s] id[%s] emission[%s] source[%s]\n", arg->pkgname, arg->id, arg->info.text_signal.emission, arg->info.text_signal.source); ret = livebox_script_event(arg->pkgname, arg->id, arg->info.text_signal.emission, arg->info.text_signal.source, &info); @@ -155,6 +162,7 @@ static int method_resize(struct event_arg *arg) { int ret; + DbgPrint("pkgname[%s] id[%s] w[%d] h[%d]\n", arg->pkgname, arg->id, arg->info.resize.w, arg->info.resize.h); ret = livebox_resize(arg->pkgname, arg->id, arg->info.resize.w, arg->info.resize.h); return ret; @@ -163,6 +171,7 @@ static int method_resize(struct event_arg *arg) static int method_set_period(struct event_arg *arg) { int ret; + DbgPrint("pkgname[%s] id[%s] period[%lf]\n", arg->pkgname, arg->id, arg->info.set_period.period); ret = livebox_set_period(arg->pkgname, arg->id, arg->info.set_period.period); return ret; } @@ -170,13 +179,14 @@ static int method_set_period(struct event_arg *arg) static int method_change_group(struct event_arg *arg) { int ret; - ret = livebox_change_group(arg->pkgname, arg->id, - arg->info.change_group.cluster, arg->info.change_group.category); + DbgPrint("pkgname[%s] id[%s] cluster[%s] category[%s]\n", arg->pkgname, arg->id, arg->info.change_group.cluster, arg->info.change_group.category); + ret = livebox_change_group(arg->pkgname, arg->id, arg->info.change_group.cluster, arg->info.change_group.category); return ret; } static int method_pinup(struct event_arg *arg) { + DbgPrint("pkgname[%s] id[%s] state[%d]\n", arg->pkgname, arg->id, arg->info.pinup.state); arg->info.pinup.content_info = livebox_pinup(arg->pkgname, arg->id, arg->info.pinup.state); return arg->info.pinup.content_info ? 0 : -ENOTSUP; } @@ -184,6 +194,7 @@ static int method_pinup(struct event_arg *arg) static int method_update_content(struct event_arg *arg) { int ret; + DbgPrint("pkgname[%s] cluster[%s] category[%s]\n", arg->pkgname, arg->info.update_content.cluster, arg->info.update_content.category); ret = livebox_update_all(arg->pkgname, arg->info.update_content.cluster, arg->info.update_content.category); return ret; } -- 2.7.4