From de57e0af32fbfddba6351149508f5af57a83c5d7 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Thu, 10 Jan 2013 17:35:41 +0900 Subject: [PATCH] Add new API for updating boxes. Change-Id: Id126805e6204f4ef1e42f84ad4cc1cde05f1c172 --- include/lb.h | 1 + packaging/org.tizen.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/org.tizen.data-provider-slave.spec b/packaging/org.tizen.data-provider-slave.spec index 0d768b7..91a5325 100644 --- a/packaging/org.tizen.data-provider-slave.spec +++ b/packaging/org.tizen.data-provider-slave.spec @@ -1,6 +1,6 @@ Name: org.tizen.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