int media_folder_foreach_media_from_db_by_union_select(const char* folder_id, filter_h filter1, filter_h filter2, media_info_cb callback, void* user_data);
#endif
int media_folder_get_scan_status(const char *storage_uuid, char* path, media_folder_scan_status_e *scan_status);
+int media_folder_reset_scan_status(const char *storage_uuid, const char* path);
/**
* @brief Sets the folder name.
return ret;
}
+
+int media_folder_reset_scan_status(const char *storage_uuid, const char* path)
+{
+ int ret = MEDIA_CONTENT_ERROR_NONE;
+ if (STRING_VALID(path)) {
+ ret = media_svc_set_folder_scan_status(storage_uuid, path, MEDIA_DIR_SCAN_NONE, _content_get_uid());
+ if (ret != MS_MEDIA_ERR_NONE) {
+ media_content_error("media_folder_reset_scan_status failed");
+ ret = _content_error_capi(ret);
+ }
+ } else {
+ media_content_error("INVALID_PARAMETER(0x%08x)", MEDIA_CONTENT_ERROR_INVALID_PARAMETER);
+ ret = MEDIA_CONTENT_ERROR_INVALID_PARAMETER;
+ }
+
+ return ret;
+}
#endif