Add lcov exception for deprecated APIs
[platform/core/api/media-content.git] / include_product / media_face.h
index 4c879fe..4c5f78e 100755 (executable)
@@ -37,6 +37,7 @@ extern "C" {
  */
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Clones the media face handle.
  * @details This function copies the media face handle from a source to
  * destination. There is no media_face_create() function. The media_face_h is created internally and available through
@@ -58,9 +59,10 @@ extern "C" {
  * @see media_face_destroy()
  * @see media_face_foreach_face_from_db()
  */
-int media_face_clone(media_face_h *dst, media_face_h src);
+int media_face_clone(media_face_h *dst, media_face_h src) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Destroys the media face handle.
  * @details Function frees all resources related to media face handle. This
  * handle no longer can be used to perform any operations. New handle has to
@@ -79,9 +81,10 @@ int media_face_clone(media_face_h *dst, media_face_h src);
  *
  * @see media_face_clone()
  */
-int media_face_destroy(media_face_h face);
+int media_face_destroy(media_face_h face) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Gets the face id from the media face handle.
  *
  * @since_tizen 3.0
@@ -96,9 +99,10 @@ int media_face_destroy(media_face_h face);
  * @retval #MEDIA_CONTENT_ERROR_NONE Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_face_get_face_id(media_face_h face, char **face_id);
+int media_face_get_face_id(media_face_h face, char **face_id) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Gets the media id from the media face handle.
  *
  * @since_tizen 3.0
@@ -113,9 +117,10 @@ int media_face_get_face_id(media_face_h face, char **face_id);
  * @retval #MEDIA_CONTENT_ERROR_NONE Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_face_get_media_id(media_face_h face, char **media_id);
+int media_face_get_media_id(media_face_h face, char **media_id) TIZEN_DEPRECATED_API;
 
  /**
+ * @deprecated Deprecated since 8.0.
  * @brief Gets the face's rectangle from the media face handle.
  * @details This function can get the face's rectangle information. returned rectangle information includes the orientation value.
  *
@@ -131,9 +136,10 @@ int media_face_get_media_id(media_face_h face, char **media_id);
  * @retval #MEDIA_CONTENT_ERROR_NONE Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_face_get_face_rect(media_face_h face, unsigned int *rect_x, unsigned int *rect_y, unsigned int *rect_w, unsigned int *rect_h);
+int media_face_get_face_rect(media_face_h face, unsigned int *rect_x, unsigned int *rect_y, unsigned int *rect_w, unsigned int *rect_h) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Gets the orientation from the media face handle.
  * @details This function can get the orientation value from the original image.
  *
@@ -146,9 +152,10 @@ int media_face_get_face_rect(media_face_h face, unsigned int *rect_x, unsigned i
  * @retval #MEDIA_CONTENT_ERROR_NONE Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_face_get_orientation(media_face_h face, media_content_orientation_e *orientation);
+int media_face_get_orientation(media_face_h face, media_content_orientation_e *orientation) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Gets the tag from the media face handle.
  *
  * @since_tizen 3.0
@@ -162,14 +169,16 @@ int media_face_get_orientation(media_face_h face, media_content_orientation_e *o
  * @retval #MEDIA_CONTENT_ERROR_NONE Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_face_get_tag(media_face_h face, char **tag);
+int media_face_get_tag(media_face_h face, char **tag) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Creates the media face handle.
  *
  * @since_tizen 3.0
  *
- * @remarks The @a face should be released using media_face_destroy().
+ * @remarks The @a face should be released using media_face_destroy(). \n
+ *          Since 5.5, this function supports only image type.
  *
  * @param[in] media_id The media ID
  * @param[out] face The media face handle
@@ -180,9 +189,10 @@ int media_face_get_tag(media_face_h face, char **tag);
  *
  * @see media_face_destroy()
  */
-int media_face_create(const char *media_id, media_face_h *face);
+int media_face_create(const char *media_id, media_face_h *face) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Sets the face rectangle of the media face handle.
  *
  * @since_tizen 3.0
@@ -201,9 +211,10 @@ int media_face_create(const char *media_id, media_face_h *face);
  * @post media_face_update_to_db()
  *
  */
-int media_face_set_face_rect(media_face_h face, unsigned int rect_x, unsigned int rect_y, unsigned int rect_w, unsigned int rect_h);
+int media_face_set_face_rect(media_face_h face, unsigned int rect_x, unsigned int rect_y, unsigned int rect_w, unsigned int rect_h) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Sets the orientation of the media face handle.
  * @details This function may set the value of the original image orientation.
  *
@@ -220,9 +231,10 @@ int media_face_set_face_rect(media_face_h face, unsigned int rect_x, unsigned in
  * @post media_face_update_to_db()
  *
  */
-int media_face_set_orientation(media_face_h face, media_content_orientation_e orientation);
+int media_face_set_orientation(media_face_h face, media_content_orientation_e orientation) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Sets the tag of the media face handle.
  *
  * @since_tizen 3.0
@@ -238,9 +250,10 @@ int media_face_set_orientation(media_face_h face, media_content_orientation_e or
  * @post media_face_insert_to_db()
  * @post media_face_update_to_db()
  */
-int media_face_set_tag(media_face_h face, const char *tag);
+int media_face_set_tag(media_face_h face, const char *tag) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Inserts a new face in the media database.
  * @since_tizen 3.0
  *
@@ -264,11 +277,14 @@ int media_face_set_tag(media_face_h face, const char *tag);
  *
  * @see media_content_connect()
  * @see media_face_destroy()
- * @see media_face_set_xxx()
+ * @see media_face_set_face_rect()
+ * @see media_face_set_orientation()
+ * @see media_face_set_tag()
  */
-int media_face_insert_to_db(media_face_h face);
+int media_face_insert_to_db(media_face_h face) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Updates the face details to the media database.
  *
  * @details The function updates the given media face in the media database. The function should be called after any change in face, to be updated to the media
@@ -295,12 +311,15 @@ int media_face_insert_to_db(media_face_h face);
  *
  * @see media_content_connect()
  * @see media_face_destroy()
- * @see media_face_set_xxx()
+ * @see media_face_set_face_rect()
+ * @see media_face_set_orientation()
+ * @see media_face_set_tag()
  *
  */
-int media_face_update_to_db(media_face_h face);
+int media_face_update_to_db(media_face_h face) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Deletes the face with given face id from the media database.
  *
  * @since_tizen 3.0
@@ -323,9 +342,10 @@ int media_face_update_to_db(media_face_h face);
  * @see media_content_connect()
  *
  */
-int media_face_delete_from_db(const char *face_id);
+int media_face_delete_from_db(const char *face_id) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Gets the number of media faces with an optional filter from the media database.
  * @since_tizen 4.0
  *
@@ -345,9 +365,10 @@ int media_face_delete_from_db(const char *face_id);
  * @see media_content_connect()
  * @see media_filter_create()
  */
-int media_face_get_face_count_from_db(filter_h filter, int *face_count);
+int media_face_get_face_count_from_db(filter_h filter, int *face_count) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Iterates through the faces with an optional filter from the media database.
  * @details This function gets all faces associated with the given filter and calls @a callback for every retrieved media face.
  *          If @c NULL is passed to the @a filter, then no filtering is applied.
@@ -373,7 +394,7 @@ int media_face_get_face_count_from_db(filter_h filter, int *face_count);
  * @see media_face_cb()
  * @see media_filter_create()
  */
-int media_face_foreach_face_from_db(filter_h filter, media_face_cb callback, void *user_data);
+int media_face_foreach_face_from_db(filter_h filter, media_face_cb callback, void *user_data) TIZEN_DEPRECATED_API;
 
 /**
  * @}