Supporting the LB_SYS_EVENT_DELETED event type.
authorSung-jae Park <nicesj.park@samsung.com>
Wed, 11 Jun 2014 07:44:29 +0000 (16:44 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Wed, 11 Jun 2014 07:44:53 +0000 (16:44 +0900)
Change-Id: Idd268dda2ca8f47edba98ecb0b3693ca16bfab2d

packaging/com.samsung.data-provider-slave.spec
src/client.c

index 189eb7b..381fea0 100644 (file)
@@ -2,7 +2,7 @@
 
 Name: com.samsung.data-provider-slave
 Summary: Plugin type livebox service provider
-Version: 0.15.0
+Version: 0.15.1
 Release: 1
 Group: HomeTF/Livebox
 License: Flora
index a73abee..6c1bd47 100644 (file)
@@ -174,7 +174,14 @@ static int method_renew(struct event_arg *arg, void *data)
 static int method_delete(struct event_arg *arg, void *data)
 {
        int ret;
+
        DbgPrint("pkgname[%s] id[%s]\n", arg->pkgname, arg->id);
+
+       if (arg->info.lb_destroy.type == INSTANCE_DESTROY_DEFAULT || arg->info.lb_destroy.type == INSTANCE_DESTROY_UNINSTALL) {
+               DbgPrint("Box is deleted from the viewer\n");
+               (void)lb_system_event(arg->pkgname, arg->id, LB_SYS_EVENT_DELETED);
+       }
+
        ret = lb_destroy(arg->pkgname, arg->id);
        return ret;
 }