#include <sys/stat.h>
#include <mm_file.h>
#include <media-thumbnail.h>
+#include <media-util.h>
#include "media-svc.h"
#include "media-svc-util.h"
return MEDIA_SVC_PLUGIN_ERROR;
}
#endif
+ int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
+
+ ret = dcm_svc_request_extract_all(uid);
+ if (ret < 0) {
+ return MEDIA_SVC_PLUGIN_ERROR;
+ }
return MEDIA_SVC_PLUGIN_ERROR_NONE;
}
return MEDIA_SVC_PLUGIN_ERROR_NONE;
}
-int update_item_meta(void *handle, const char *file_path, int storage_type, uid_t uid, char **err_msg)
+int update_item_meta(void *handle, const char *file_path, const char *storage_id, int storage_type, uid_t uid, char **err_msg)
{
int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
return MEDIA_SVC_PLUGIN_ERROR;
}
- ret = media_svc_update_item_meta(handle, file_path, storage_type, uid);
+ if (storage_id == NULL) {
+ __set_error_message(ERR_HANDLE, err_msg);
+ return MEDIA_SVC_PLUGIN_ERROR;
+ }
+
+ ret = media_svc_update_item_meta(handle, file_path, storage_id, storage_type, uid);
if (ret < 0) {
__set_error_message(ret, err_msg);
return MEDIA_SVC_PLUGIN_ERROR;