From 915ed9742e3eb9b676a0fad680a4f7b359b8d162 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Mon, 13 Oct 2014 18:22:55 +0900 Subject: [PATCH] Sync with the latest wearable changes [model] Redwood,Kiran,B3(Wearable) [binary_type] AP [customer] Docomo/Orange/ATT/Open [issue#] N/A [problem] [cause] [solution] [team] HomeTF [request] [horizontal_expansion] Change-Id: I763eaf1d0afae494a7750e186cbce517d226539d --- com.samsung.data-provider-slave.xml | 5 ++++- packaging/com.samsung.data-provider-slave.manifest | 16 +++++++++++----- src/client.c | 4 ++-- src/connection.c | 2 +- src/lb.c | 8 ++------ 5 files changed, 20 insertions(+), 15 deletions(-) diff --git a/com.samsung.data-provider-slave.xml b/com.samsung.data-provider-slave.xml index 8e43bf5..d34fe2a 100644 --- a/com.samsung.data-provider-slave.xml +++ b/com.samsung.data-provider-slave.xml @@ -7,7 +7,7 @@ com.samsung.data-provider-slave.png - + @@ -19,4 +19,7 @@ + + http://tizen.org/privilege/contact.read + diff --git a/packaging/com.samsung.data-provider-slave.manifest b/packaging/com.samsung.data-provider-slave.manifest index 5942d0a..75841b6 100644 --- a/packaging/com.samsung.data-provider-slave.manifest +++ b/packaging/com.samsung.data-provider-slave.manifest @@ -1,12 +1,18 @@ - + + + + + + + + + + - - - - + diff --git a/src/client.c b/src/client.c index 5ebcc07..60728d0 100644 --- a/src/client.c +++ b/src/client.c @@ -76,7 +76,7 @@ static int method_new(struct event_arg *arg, int *width, int *height, double *pr _arg.category = arg->info.lb_create.category; _arg.abi = arg->info.lb_create.abi; _arg.skip_need_to_create = arg->info.lb_create.skip_need_to_create; - _arg.direct_addr = NULL; // arg->info.lb_create.direct_addr; + _arg.direct_addr = arg->info.lb_create.direct_addr; ret = lb_create(arg->pkgname, arg->id, &_arg, @@ -148,7 +148,7 @@ static int method_renew(struct event_arg *arg, void *data) _arg.category = arg->info.lb_recreate.category; _arg.abi = arg->info.lb_recreate.abi; _arg.skip_need_to_create = 1; - _arg.direct_addr = NULL; // arg->info.lb_recreate.direct_addr; + _arg.direct_addr = arg->info.lb_recreate.direct_addr; ret = lb_create(arg->pkgname, arg->id, &_arg, diff --git a/src/connection.c b/src/connection.c index 51a1ead..b6f2aa6 100644 --- a/src/connection.c +++ b/src/connection.c @@ -61,7 +61,7 @@ static int connected_cb(int handle, void *data) struct event_item *item; EINA_LIST_FOREACH_SAFE(s_info.connected_list, l, n, item) { - s_info.process = DISCONNECTION; + s_info.process = CONNECTION; if (item->deleted || item->event_cb(handle, item->data) < 0 || item->deleted) { s_info.connected_list = eina_list_remove(s_info.connected_list, item); free(item); diff --git a/src/lb.c b/src/lb.c index 386ddc1..341cf8a 100644 --- a/src/lb.c +++ b/src/lb.c @@ -1282,9 +1282,7 @@ int livebox_send_updated(const char *pkgname, const char *id, int w, int h) } if (item->direct_path) { - // Not yet supported for kiran - // ret = provider_send_direct_updated(connection_handle(item->direct_path), pkgname, id, w, h); - ret = provider_send_updated(pkgname, id, w, h); + ret = provider_send_direct_updated(connection_handle(item->direct_path), pkgname, id, w, h); } else { ret = provider_send_updated(pkgname, id, w, h); } @@ -1307,9 +1305,7 @@ int livebox_send_desc_updated(const char *pkgname, const char *id, const char *d } if (item->direct_path) { - // Not yet supported for kiran - //ret = provider_send_direct_desc_updated(connection_handle(item->direct_path), pkgname, id, descfile); - ret = provider_send_desc_updated(pkgname, id, descfile); + ret = provider_send_direct_desc_updated(connection_handle(item->direct_path), pkgname, id, descfile); } else { ret = provider_send_desc_updated(pkgname, id, descfile); } -- 2.7.4