*/
/**
- * @defgroup CAPI_MEDIA_METADATA_EDITOR_MODULE Metadata Editor
+ * @defgroup CAPI_MEDIA_METADATA_EDITOR_MODULE Metadata Editor (Deprecated)
* @ingroup CAPI_MEDIA_FRAMEWORK
*/
/**
+ * @deprecated Deprecated since 9.0.
* @brief Creates metadata.
* @since_tizen 2.4
*
* @retval #METADATA_EDITOR_ERROR_OUT_OF_MEMORY Out of memory
* @see metadata_editor_destroy()
*/
-int metadata_editor_create(metadata_editor_h *metadata);
+int metadata_editor_create(metadata_editor_h *metadata) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 9.0.
* @brief Sets file path to read or write metadata.
* @since_tizen 2.4
*
* @see metadata_editor_create()
* @see metadata_editor_destroy()
*/
-int metadata_editor_set_path(metadata_editor_h metadata, const char *path);
+int metadata_editor_set_path(metadata_editor_h metadata, const char *path) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 9.0.
* @brief Gets the metadata corresponding to the attribute.
* @since_tizen 2.4
*
* @see metadata_editor_set_path()
* @see metadata_editor_destroy()
*/
-int metadata_editor_get_metadata(metadata_editor_h metadata, metadata_editor_attr_e attribute, char **value);
+int metadata_editor_get_metadata(metadata_editor_h metadata, metadata_editor_attr_e attribute, char **value) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 9.0.
* @brief Sets the attribute of the metadata.
* @details This function set the attribute of the metadata for updating the metadata. \n
* If @a attribute is #METADATA_EDITOR_ATTR_PICTURE_NUM, this function returns #METADATA_EDITOR_ERROR_INVALID_PARAMETER.
* @see metadata_editor_update_metadata()
* @see metadata_editor_destroy()
*/
-int metadata_editor_set_metadata(metadata_editor_h metadata, metadata_editor_attr_e attribute, const char *value);
+int metadata_editor_set_metadata(metadata_editor_h metadata, metadata_editor_attr_e attribute, const char *value) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 9.0.
* @brief Updates the modified metadata.
* @details This function update the metadata in the media file that is modified by metadata_editor_set_metadata().
* @since_tizen 2.4
* @see metadata_editor_set_path()
* @see metadata_editor_destroy()
*/
-int metadata_editor_update_metadata(metadata_editor_h metadata);
+int metadata_editor_update_metadata(metadata_editor_h metadata) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 9.0.
* @brief Gets the picture in the media file.
* @details If there is no picture or if the @a index is invalid, this function returns #METADATA_EDITOR_ERROR_INVALID_PARAMETER.\n
* You can get picture number by using metadata_editor_get_metadata() and index starts with 0.
* @see metadata_editor_set_path()
* @see metadata_editor_destroy()
*/
-int metadata_editor_get_picture(metadata_editor_h metadata, int index, void **picture, int *size, char **mime_type);
+int metadata_editor_get_picture(metadata_editor_h metadata, int index, void **picture, int *size, char **mime_type) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 9.0.
* @brief Appends the picture to the media file.
* @since_tizen 2.4
*
* @see metadata_editor_update_metadata()
* @see metadata_editor_destroy()
*/
-int metadata_editor_append_picture(metadata_editor_h metadata, const char *picture_path);
+int metadata_editor_append_picture(metadata_editor_h metadata, const char *picture_path) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 9.0.
* @brief Removes artwork image from media file.
* @since_tizen 2.4
*
* @see metadata_editor_update_metadata()
* @see metadata_editor_destroy()
*/
-int metadata_editor_remove_picture(metadata_editor_h metadata, int index);
+int metadata_editor_remove_picture(metadata_editor_h metadata, int index) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 9.0.
* @brief Destroys metadata.
* @since_tizen 2.4
*
* @pre Create metadata handle by calling metadata_editor_create()
* @see metadata_editor_create()
*/
-int metadata_editor_destroy(metadata_editor_h metadata);
+int metadata_editor_destroy(metadata_editor_h metadata) TIZEN_DEPRECATED_API;
/**
* @}
SECURE_LOGD(FONT_COLOR_CYAN"" fmt "" FONT_COLOR_RESET, ##arg); \
} while (0)
+#define ME_WARN(fmt, arg...) do { \
+ LOGW(FONT_COLOR_GREEN"" fmt "" FONT_COLOR_RESET, ##arg); \
+ } while (0)
+
#define ME_RETVM_IF(expr, val, fmt, arg...) do { \
if ((expr)) { \
LOGE(FONT_COLOR_RED"" fmt "" FONT_COLOR_RESET, ##arg); \
/**
* @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE
+ * @deprecated Deprecated since 9.0.
* @brief The enumerations of media metadata error.
* @since_tizen 2.4
*/
/**
* @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE
+ * @deprecated Deprecated since 9.0.
* @brief The enumerations of attribute.
* @since_tizen 2.4
*/
/**
* @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE
+ * @deprecated Deprecated since 9.0.
* @brief The handle of media metadata.
* @since_tizen 2.4
*/
#define MIME_TYPE_JPEG "image/jpeg"
#define MIME_TYPE_PNG "image/png"
-
+// LCOV_EXCL_START
static String __get_file_ext(const char *file_path)
{
String s = String(file_path, String::UTF8);
extern "C" int metadata_editor_create(metadata_editor_h *metadata)
{
+ ME_WARN("DEPRECATION WARNING: metadata_editor_create() is deprecated and will be removed from next release.");
ME_RETVM_IF(!metadata, METADATA_EDITOR_ERROR_INVALID_PARAMETER, "Invalid metadata");
metadata_editor_s* _metadata = (metadata_editor_s*)malloc(sizeof(metadata_editor_s));
extern "C" int metadata_editor_destroy(metadata_editor_h metadata)
{
+ ME_WARN("DEPRECATION WARNING: metadata_editor_destroy() is deprecated and will be removed from next release.");
auto _metadata = static_cast<metadata_editor_s*>(metadata);
ME_RETVM_IF(!_metadata, METADATA_EDITOR_ERROR_INVALID_PARAMETER, "Invalid metadata");
extern "C" int metadata_editor_set_path(metadata_editor_h metadata, const char *path)
{
+ ME_WARN("DEPRECATION WARNING: metadata_editor_set_path() is deprecated and will be removed from next release.");
int ret = METADATA_EDITOR_ERROR_NONE;
auto _metadata = static_cast<metadata_editor_s*>(metadata);
ME_RETVM_IF(!_metadata, METADATA_EDITOR_ERROR_INVALID_PARAMETER, "Invalid metadata");
extern "C" int metadata_editor_append_picture(metadata_editor_h metadata, const char *path)
{
+ ME_WARN("DEPRECATION WARNING: metadata_editor_append_picture() is deprecated and will be removed from next release.");
int ret = METADATA_EDITOR_ERROR_NONE;
auto _metadata = static_cast<metadata_editor_s*>(metadata);
ME_RETV_IF(__is_valid_handle(_metadata, true), METADATA_EDITOR_ERROR_INVALID_PARAMETER);
extern "C" int metadata_editor_remove_picture(metadata_editor_h metadata, int index)
{
+ ME_WARN("DEPRECATION WARNING: metadata_editor_remove_picture() is deprecated and will be removed from next release.");
auto _metadata = static_cast<metadata_editor_s*>(metadata);
ME_RETV_IF(__is_valid_handle(_metadata, true), METADATA_EDITOR_ERROR_INVALID_PARAMETER);
extern "C" int metadata_editor_get_picture(metadata_editor_h metadata, int index, void **picture, int *size, char **mime_type)
{
+ ME_WARN("DEPRECATION WARNING: metadata_editor_get_picture() is deprecated and will be removed from next release.");
auto _metadata = static_cast<metadata_editor_s*>(metadata);
ME_RETV_IF(__is_valid_handle(_metadata, false), METADATA_EDITOR_ERROR_INVALID_PARAMETER);
ME_RETVM_IF(!picture, METADATA_EDITOR_ERROR_INVALID_PARAMETER, "Invalid picture");
extern "C" int metadata_editor_set_metadata(metadata_editor_h metadata, metadata_editor_attr_e attribute, const char *value)
{
+ ME_WARN("DEPRECATION WARNING: metadata_editor_set_metadata() is deprecated and will be removed from next release.");
auto _metadata = static_cast<metadata_editor_s*>(metadata);
ME_RETV_IF(__is_valid_handle(_metadata, true), METADATA_EDITOR_ERROR_INVALID_PARAMETER);
extern "C" int metadata_editor_get_metadata(metadata_editor_h metadata, metadata_editor_attr_e attribute, char **value)
{
+ ME_WARN("DEPRECATION WARNING: metadata_editor_get_metadata() is deprecated and will be removed from next release.");
auto _metadata = static_cast<metadata_editor_s*>(metadata);
ME_RETV_IF(__is_valid_handle(_metadata, false), METADATA_EDITOR_ERROR_INVALID_PARAMETER);
ME_RETVM_IF(!value, METADATA_EDITOR_ERROR_INVALID_PARAMETER, "Invalid value");
extern "C" int metadata_editor_update_metadata(metadata_editor_h metadata)
{
+ ME_WARN("DEPRECATION WARNING: metadata_editor_update_metadata() is deprecated and will be removed from next release.");
auto _metadata = static_cast<metadata_editor_s*>(metadata);
ME_RETV_IF(__is_valid_handle(_metadata, true), METADATA_EDITOR_ERROR_INVALID_PARAMETER);
return METADATA_EDITOR_ERROR_OPERATION_FAILED;
return METADATA_EDITOR_ERROR_NONE;
-}
\ No newline at end of file
+}
+// LCOV_EXCL_STOP
\ No newline at end of file