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);
+}
*/
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