Add block update capi for sharable_watch 15/227415/2
authorhyunho <hhstark.kang@samsung.com>
Thu, 12 Mar 2020 01:26:37 +0000 (10:26 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Thu, 12 Mar 2020 01:27:41 +0000 (01:27 +0000)
Change-Id: Ibf31642540d724b79cd478ed9b9adc75843fa8c4
Signed-off-by: hyunho <hhstark.kang@samsung.com>
watch-holder/api/sharable_watch.cc
watch-holder/api/sharable_watch.h

index 92270e4..c3a1291 100644 (file)
@@ -67,3 +67,8 @@ C_EXPORT int sharable_watch_is_faulted(sharable_watch_h watch, bool *faulted) {
   watch_h w = reinterpret_cast<watch_h>(watch);
   return watch_is_faulted(w, faulted);
 }
+
+C_EXPORT int sharable_watch_block_update(sharable_watch_h watch, bool enable) {
+  watch_h w = reinterpret_cast<watch_h>(watch);
+  return watch_block_update(w, enable);
+}
index 4046644..4f8c3a9 100644 (file)
@@ -122,6 +122,17 @@ int sharable_watch_is_bound(sharable_watch_h watch, bool *bound);
  */
 int sharable_watch_is_faulted(sharable_watch_h watch, bool *faulted);
 
+/**
+ * @brief Blocks watch buffer update.
+ * @remarks This function only for internal applications.
+ * @param[in] watch The sharable watch handle
+ * @param[in] enable Whether the watch buffer update is blocked or not
+ * @return #WATCH_HOLDER_ERROR_NONE on success, otherwise a negative error value
+ * @retval #WATCH_HOLDER_ERROR_NONE Success
+ * @retval #WATCH_HOLDER_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int sharable_watch_block_update(sharable_watch_h watch, bool enable);
+
 #ifdef __cplusplus
 }
 #endif