Check RW mount
[platform/core/uifw/capi-ui-sticker.git] / client / sticker_defs.h
index 3575ecf..69167ec 100644 (file)
@@ -18,6 +18,8 @@
 #define __TIZEN_UIX_STICKER_DEFS_H__
 
 #include <tzplatform_config.h>
+#include <stdbool.h>
+#include <system_info.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -36,6 +38,17 @@ extern "C" {
 #define STICKER_CONSUMER_INTERFACE_NAME "org.tizen.sticker_consumer"
 
 #define STICKER_PRIVILEGE_MEDIASTORAGE "http://tizen.org/privilege/mediastorage"
+#define STICKER_FEATURE_STICKER         "tizen.org/feature/ui_service.sticker"
+#define CHECK_STICKER_FEATURE()  \
+  do { \
+    bool is_supported = false;  \
+    if (!system_info_get_platform_bool(STICKER_FEATURE_STICKER, &is_supported)) {  \
+      if (is_supported == false) {  \
+        LOGE("ui_service.sticker feature not supported");  \
+        return STICKER_ERROR_NOT_SUPPORTED;  \
+      }  \
+    }  \
+  } while (0)
 
 typedef enum {
     STICKER_CLIENT_LIB_NONE,
@@ -53,8 +66,15 @@ typedef enum {
     STICKER_DATA_TYPE_GROUP,
     STICKER_DATA_TYPE_KEYWORD,
     STICKER_DATA_TYPE_DATE,
+    STICKER_DATA_TYPE_DISP_TYPE,
 } STICKER_DAT_TYPE;
 
+typedef enum {
+    STICKER_EVENT_TYPE_INSERT,
+    STICKER_EVENT_TYPE_DELETE,
+    STICKER_EVENT_TYPE_UPDATE,
+} STICKER_EVENT_TYPE;
+
 #ifdef __cplusplus
 }
 #endif