Remove deprecated macro in callback function
[platform/core/api/gesture.git] / include / gesture.h
index 1171bd0..910f45f 100644 (file)
@@ -34,12 +34,14 @@ extern "C" {
  */
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief The hand gesture handle.
  * @since_tizen @if WEARABLE 6.0 @endif
  */
 typedef struct hand_gesture_s *hand_gesture_h;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Called when a gesture is detected.
  * @details Following error codes can be delivered: \n
  *          #HAND_GESTURE_ERROR_NONE, \n
@@ -65,6 +67,7 @@ typedef struct hand_gesture_s *hand_gesture_h;
 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);
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Called when an error is occurred.
  * @details Following error codes can be delivered: \n
  *          #HAND_GESTURE_ERROR_INVALID_PARAMETER, \n
@@ -92,6 +95,7 @@ typedef void(* hand_gesture_recognition_cb)(hand_gesture_h handle, hand_gesture_
 typedef void(* hand_gesture_error_cb)(hand_gesture_h handle, hand_gesture_error_e error, const char* msg, void *user_data);
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Checks whether a gesture is supported or not.
  * @details Check if the given gesture type is supported on the device.
  *
@@ -108,9 +112,10 @@ 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;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Creates a gesture handle.
  *
  * @since_tizen @if WEARABLE 6.0 @endif
@@ -130,9 +135,10 @@ 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;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Destroys a gesture handle.
  *
  * @since_tizen @if WEARABLE 6.0 @endif
@@ -147,9 +153,10 @@ 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;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Sets an option for gesture recognition.
  *
  * @since_tizen @if WEARABLE 6.0 @endif
@@ -167,9 +174,10 @@ 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;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Starts to recognize a gesture.
  * @details Sets a callback function to be invoked when the gesture is detected, and starts to monitor occurrences of the gesture.
  *
@@ -196,9 +204,10 @@ 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;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Stops recognizing the gesture registered to the gesture handle.
  *
  * @since_tizen @if WEARABLE 6.0 @endif
@@ -212,9 +221,10 @@ 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;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Gets a gesture engine information.
  *
  * @since_tizen @if WEARABLE 6.0 @endif
@@ -230,9 +240,10 @@ 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;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Sets a callback function to be invoked when an error is occurred.
  *
  * @since_tizen @if WEARABLE 6.0 @endif
@@ -250,9 +261,10 @@ 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;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Unsets a callback function to be invoked when an error is occurred.
  *
  * @since_tizen @if WEARABLE 6.0 @endif
@@ -267,7 +279,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;
 
 
 /**