From bb518a88c72202a383428f19062288703cae0dd8 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Thu, 10 Jan 2013 17:12:00 +0900 Subject: [PATCH] Add livebox_request_update_by_id function. To wrap this using liblivebox package. Each SLP livebox can request to update a box. Change-Id: I552b4045dc95faa9c3fd2b8162c90a0cc8f04870 --- include/lb.h | 1 + packaging/com.samsung.data-provider-slave.spec | 2 +- src/lb.c | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/include/lb.h b/include/lb.h index 53d751a..f8e6ffd 100644 --- a/include/lb.h +++ b/include/lb.h @@ -49,5 +49,6 @@ extern void lb_turn_secured_on(void); * Exported API for each liveboxes */ extern const char *livebox_find_pkgname(const char *filename); +extern int livebox_request_update_by_id(const char *filename); /* End of a file */ diff --git a/packaging/com.samsung.data-provider-slave.spec b/packaging/com.samsung.data-provider-slave.spec index 135c8ca..077e469 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.8.18 +Version: 0.8.19 Release: 1 Group: main/app License: Flora License diff --git a/src/lb.c b/src/lb.c index 565591f..61a33de 100644 --- a/src/lb.c +++ b/src/lb.c @@ -691,6 +691,20 @@ const char *livebox_find_pkgname(const char *filename) return NULL; } +int livebox_request_update_by_id(const char *filename) +{ + Eina_List *l; + struct item *item; + + EINA_LIST_FOREACH(s_info.item_list, l, item) { + if (!strcmp(item->inst->id, filename)) { + return append_pending_list(item); + } + } + + return -ENOENT; +} + HAPI int lb_open_pd(const char *pkgname) { Eina_List *l; -- 2.7.4