Add TIZEN_DEPRECATED_API macro 95/297095/1
authorsungwook79.park <sungwook79.park@samsung.com>
Thu, 10 Aug 2023 06:27:33 +0000 (15:27 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Thu, 10 Aug 2023 06:27:33 +0000 (15:27 +0900)
Change-Id: Ibc63085b38c07f2275494d97ff9009b7ad305e0d
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
doc/uix_gesture_doc.h
include/gesture.h

index 54a528e..55c60b8 100644 (file)
@@ -21,7 +21,7 @@
 
 /**
  * @ingroup CAPI_UIX_FRAMEWORK
- * @defgroup CAPI_UIX_GESTURE_MODULE Gesture
+ * @defgroup CAPI_UIX_GESTURE_MODULE Gesture (Deprecated)
  * @brief The @ref CAPI_UIX_GESTURE_MODULE API provides functions for recognizing hand gestures from input sensor data.
  * @section CAPI_UIX_GESTURE_MODULE_HEADER Required Header
  * \#include <gesture.h>
index 1171bd0..6065720 100644 (file)
@@ -62,7 +62,7 @@ typedef struct hand_gesture_s *hand_gesture_h;
  *
  * @see hand_gesture_start_recognition()
  */
-typedef void(* hand_gesture_recognition_cb)(hand_gesture_h handle, hand_gesture_type_e gesture, double timestamp, hand_gesture_error_e error, void *user_data);
+typedef void(* hand_gesture_recognition_cb)(hand_gesture_h handle, hand_gesture_type_e gesture, double timestamp, hand_gesture_error_e error, void *user_data) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Called when an error is occurred.
@@ -89,7 +89,7 @@ typedef void(* hand_gesture_recognition_cb)(hand_gesture_h handle, hand_gesture_
  * @see hand_gesture_set_error_cb()
  * @see hand_gesture_unset_error_cb()
  */
-typedef void(* hand_gesture_error_cb)(hand_gesture_h handle, hand_gesture_error_e error, const char* msg, void *user_data);
+typedef void(* hand_gesture_error_cb)(hand_gesture_h handle, hand_gesture_error_e error, const char* msg, void *user_data) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Checks whether a gesture is supported or not.
@@ -108,7 +108,7 @@ typedef void(* hand_gesture_error_cb)(hand_gesture_h handle, hand_gesture_error_
  * @retval #HAND_GESTURE_ERROR_INVALID_PARAMETER  Invalid parameter used
  * @retval #HAND_GESTURE_ERROR_OPERATION_FAILED   Operation failed because of a system error
  */
-int hand_gesture_is_supported_type(hand_gesture_h handle, hand_gesture_type_e gesture, bool* supported);
+int hand_gesture_is_supported_type(hand_gesture_h handle, hand_gesture_type_e gesture, bool* supported) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Creates a gesture handle.
@@ -130,7 +130,7 @@ int hand_gesture_is_supported_type(hand_gesture_h handle, hand_gesture_type_e ge
  *
  * @see hand_gesture_destroy()
  */
-int hand_gesture_create(hand_gesture_h *handle);
+int hand_gesture_create(hand_gesture_h *handle) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Destroys a gesture handle.
@@ -147,7 +147,7 @@ int hand_gesture_create(hand_gesture_h *handle);
  *
  * @see hand_gesture_create()
  */
-int hand_gesture_destroy(hand_gesture_h handle);
+int hand_gesture_destroy(hand_gesture_h handle) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Sets an option for gesture recognition.
@@ -167,7 +167,7 @@ int hand_gesture_destroy(hand_gesture_h handle);
  *
  * @see hand_gesture_start_recognition()
  */
-int hand_gesture_set_option(hand_gesture_h handle, hand_gesture_option_e option);
+int hand_gesture_set_option(hand_gesture_h handle, hand_gesture_option_e option) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Starts to recognize a gesture.
@@ -196,7 +196,7 @@ int hand_gesture_set_option(hand_gesture_h handle, hand_gesture_option_e option)
  * @post hand_gesture_recognition_cb()
  * @see hand_gesture_stop_recognition()
  */
-int hand_gesture_start_recognition(hand_gesture_h handle, hand_gesture_type_e gesture, hand_gesture_recognition_cb callback, void *user_data);
+int hand_gesture_start_recognition(hand_gesture_h handle, hand_gesture_type_e gesture, hand_gesture_recognition_cb callback, void *user_data) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Stops recognizing the gesture registered to the gesture handle.
@@ -212,7 +212,7 @@ int hand_gesture_start_recognition(hand_gesture_h handle, hand_gesture_type_e ge
  * @retval #HAND_GESTURE_ERROR_NOT_STARTED        Nothing is started using the @c handle
  * @retval #HAND_GESTURE_ERROR_OPERATION_FAILED   Operation failed because of a system error
  */
-int hand_gesture_stop_recognition(hand_gesture_h handle);
+int hand_gesture_stop_recognition(hand_gesture_h handle) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Gets a gesture engine information.
@@ -230,7 +230,7 @@ int hand_gesture_stop_recognition(hand_gesture_h handle);
  * @retval #HAND_GESTURE_ERROR_INVALID_PARAMETER  Invalid parameter used
  * @retval #HAND_GESTURE_ERROR_OPERATION_FAILED   Operation failed because of a system error
  */
-int hand_gesture_get_engine_info(hand_gesture_h handle, char** engine_app_id, char** engine_name);
+int hand_gesture_get_engine_info(hand_gesture_h handle, char** engine_app_id, char** engine_name) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Sets a callback function to be invoked when an error is occurred.
@@ -250,7 +250,7 @@ int hand_gesture_get_engine_info(hand_gesture_h handle, char** engine_app_id, ch
  * @see hand_gesture_error_cb()
  * @see hand_gesture_unset_error_cb()
  */
-int hand_gesture_set_error_cb(hand_gesture_h handle, hand_gesture_error_cb callback, void *user_data);
+int hand_gesture_set_error_cb(hand_gesture_h handle, hand_gesture_error_cb callback, void *user_data) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Unsets a callback function to be invoked when an error is occurred.
@@ -267,7 +267,7 @@ int hand_gesture_set_error_cb(hand_gesture_h handle, hand_gesture_error_cb callb
  *
  * @see hand_gesture_set_error_cb()
  */
-int hand_gesture_unset_error_cb(hand_gesture_h handle);
+int hand_gesture_unset_error_cb(hand_gesture_h handle) TIZEN_DEPRECATED_API;
 
 
 /**