Add new API for updating boxes.
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 10 Jan 2013 08:35:41 +0000 (17:35 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 10 Jan 2013 08:35:41 +0000 (17:35 +0900)
Change-Id: Id126805e6204f4ef1e42f84ad4cc1cde05f1c172

include/lb.h
packaging/org.tizen.data-provider-slave.spec
src/lb.c

index 53d751a..f8e6ffd 100644 (file)
@@ -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 */
index 0d768b7..91a5325 100644 (file)
@@ -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
index 565591f..61a33de 100644 (file)
--- 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;