return MEDIA_SVC_PLUGIN_ERROR_NONE;
}
+int get_extract_list(void* handle, const char* storage_id, int storage_type, int scan_type, const char* path, int burst, uid_t uid, void* array, char** err_msg)
+{
+#if 0
+ int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
+
+ if(handle == NULL) {
+ __set_error_message(ERR_HANDLE, err_msg);
+ return MEDIA_SVC_PLUGIN_ERROR;
+ }
+
+ if(!STORAGE_VALID(storage_type)) {
+ __set_error_message(ERR_STORAGE_TYPE, err_msg);
+ return MEDIA_SVC_PLUGIN_ERROR;
+ }
+
+ ret = media_svc_pass2_get_extract_list(handle, storage_id, storage_type, scan_type, path, burst, uid, array);
+ if(ret < 0) {
+ __set_error_message(ret, err_msg);
+ return MEDIA_SVC_PLUGIN_ERROR;
+ }
+#endif
+ return MEDIA_SVC_PLUGIN_ERROR_NONE;
+}
+
+int update_one_extract_item(void* handle, const char* storage_id, int storage_type, void* data, int burst, char** err_msg)
+{
+#if 0
+ int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
+
+ if(handle == NULL) {
+ __set_error_message(ERR_HANDLE, err_msg);
+ return MEDIA_SVC_PLUGIN_ERROR;
+ }
+
+ if(!STORAGE_VALID(storage_type)) {
+ __set_error_message(ERR_STORAGE_TYPE, err_msg);
+ return MEDIA_SVC_PLUGIN_ERROR;
+ }
+
+ ret = media_svc_insert_one_item_pass2(handle, storage_id, storage_type, data, burst);
+ if(ret < 0) {
+ __set_error_message(ret, err_msg);
+ return MEDIA_SVC_PLUGIN_ERROR;
+ }
+#endif
+ return MEDIA_SVC_PLUGIN_ERROR_NONE;
+}
+
+int query_do_update_list(void* handle, char** err_msg)
+{
+#if 0
+ int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
+
+ if(handle == NULL) {
+ __set_error_message(ERR_HANDLE, err_msg);
+ return MEDIA_SVC_PLUGIN_ERROR;
+ }
+
+ ret = media_svc_query_do_update_list(handle);
+ if(ret < 0) {
+ __set_error_message(ret, err_msg);
+ return MEDIA_SVC_PLUGIN_ERROR;
+ }
+#endif
+ return MEDIA_SVC_PLUGIN_ERROR_NONE;
+}
+
int insert_folder_begin(void * handle, int item_cnt, char **err_msg)
{
int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
return MEDIA_SVC_PLUGIN_ERROR_NONE;
}
+int delete_invalid_folder_by_path(void * handle, const char *storage_id, const char *folder_path, uid_t uid, int *delete_count, char **err_msg)
+{
+ int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
+
+ if (handle == NULL) {
+ __set_error_message(ERR_HANDLE, err_msg);
+ return MEDIA_SVC_PLUGIN_ERROR;
+ }
+
+ ret = media_svc_delete_invalid_folder_by_path(handle, storage_id, folder_path, uid, delete_count);
+ if (ret < 0) {
+ __set_error_message(ret, err_msg);
+ return MEDIA_SVC_PLUGIN_ERROR;
+ }
+
+ return MEDIA_SVC_PLUGIN_ERROR_NONE;
+}
+
int get_folder_scan_status(void *handle, const char *storage_id, const char *path, int *status, char **err_msg)
{
int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
return ret;
}
-int delete_invalid_folder_by_path(void * handle, const char *storage_id, const char *folder_path, uid_t uid, int *delete_count, char **err_msg)
+int check_folder_exist(void * handle, const char *storage_id, const char *folder_path, char **err_msg)
{
int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
return MEDIA_SVC_PLUGIN_ERROR;
}
- ret = media_svc_delete_invalid_folder_by_path(handle, storage_id, folder_path, uid, delete_count);
+ ret = media_svc_check_folder_exist_by_path(handle, storage_id, folder_path);
if (ret < 0) {
__set_error_message(ret, err_msg);
return MEDIA_SVC_PLUGIN_ERROR;
return MEDIA_SVC_PLUGIN_ERROR_NONE;
}
-int check_folder_exist(void * handle, const char *storage_id, const char *folder_path, char **err_msg)
+int count_subfolder(void *handle, const char *storage_id, const char *folder_path, int *count, char **err_msg)
{
int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
+ int cnt = 0;
if (handle == NULL) {
__set_error_message(ERR_HANDLE, err_msg);
return MEDIA_SVC_PLUGIN_ERROR;
}
- ret = media_svc_check_folder_exist_by_path(handle, storage_id, folder_path);
+ ret = media_svc_check_subfolder_by_path(handle, storage_id, folder_path, &cnt);
if (ret < 0) {
__set_error_message(ret, err_msg);
return MEDIA_SVC_PLUGIN_ERROR;
}
+ *count = cnt;
+
return MEDIA_SVC_PLUGIN_ERROR_NONE;
}
-int count_subfolder(void *handle, const char *storage_id, const char *folder_path, int *count, char **err_msg)
+int get_folder_id(void * handle, const char *storage_id, const char *path, char *folder_id, char **err_msg)
{
int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
- int cnt = 0;
if (handle == NULL) {
__set_error_message(ERR_HANDLE, err_msg);
return MEDIA_SVC_PLUGIN_ERROR;
}
- ret = media_svc_check_subfolder_by_path(handle, storage_id, folder_path, &cnt);
+ ret = media_svc_get_folder_id(handle, storage_id, path, folder_id);
if (ret < 0) {
__set_error_message(ret, err_msg);
return MEDIA_SVC_PLUGIN_ERROR;
}
- *count = cnt;
-
return MEDIA_SVC_PLUGIN_ERROR_NONE;
}
-int get_folder_id(void * handle, const char *storage_id, const char *path, char *folder_id, char **err_msg)
+int get_media_type(void *handle, const char *path, int *mediatype, char **err_msg)
{
+#if 0
int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
if (handle == NULL) {
return MEDIA_SVC_PLUGIN_ERROR;
}
- ret = media_svc_get_folder_id(handle, storage_id, path, folder_id);
+ ret = media_svc_get_media_type(path, mediatype);
if (ret < 0) {
__set_error_message(ret, err_msg);
return MEDIA_SVC_PLUGIN_ERROR;
}
-
+#endif
return MEDIA_SVC_PLUGIN_ERROR_NONE;
}