Add new event type for handling the deletion of an instance.
authorSung-jae Park <nicesj.park@samsung.com>
Wed, 11 Jun 2014 07:32:32 +0000 (16:32 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Wed, 11 Jun 2014 07:45:15 +0000 (16:45 +0900)
If a user deletes the instance from the homescreen(viewer),
the inhouse-dbox will get this new event LB_SYS_EVENT_DELETED
via livebox_system_event interface.

in this case, dbox developer should clean up their resources stored in
permanent storage.

Change-Id: Ied7271101a0bbc5666af7b0ea132c8b5d991b558

include/livebox.h
packaging/liblivebox.spec
src/livebox.c

index 4baf9f5..daff305 100644 (file)
@@ -128,6 +128,12 @@ extern const int LB_SYS_EVENT_MMC_STATUS_CHANGED;
 
 /*!
  * \brief
+ * Livebox is deleted
+ */
+extern const int LB_SYS_EVENT_DELETED;
+
+/*!
+ * \brief
  * COLOR BLOCK
  */
 #define LB_DESC_TYPE_COLOR "color"
index 84815d3..0ecbfb3 100644 (file)
@@ -2,7 +2,7 @@
 
 Name: liblivebox
 Summary: Livebox development library
-Version: 0.7.6
+Version: 0.7.7
 Release: 1
 Group: HomeTF/Livebox
 License: Flora
index 21d02b0..bc67cd3 100644 (file)
@@ -181,6 +181,7 @@ PUBLIC const int LB_SYS_EVENT_REGION_CHANGED = 0x08;
 PUBLIC const int LB_SYS_EVENT_PAUSED = 0x0100;
 PUBLIC const int LB_SYS_EVENT_RESUMED = 0x0200;
 PUBLIC const int LB_SYS_EVENT_MMC_STATUS_CHANGED = 0x0400;
+PUBLIC const int LB_SYS_EVENT_DELETED = 0x0800;
 
 static char *id_to_uri(const char *id)
 {