This patch changes media-scanner-v2 to write directly to media.db.
It makes better performance than bulk insert through IPC.
Change-Id: Ic8c54363a9f9e7366a2506e57f1e9ab7834bc9f1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
return MS_MEDIA_ERR_NONE;
}
-int insert_folder_begin(int item_cnt)
-{
- /* For scanner V2 */
- return MS_MEDIA_ERR_NONE;
-}
-
-int insert_folder_end(uid_t uid)
-{
- /* For scanner V2 */
- return MS_MEDIA_ERR_NONE;
-}
-
int insert_folder(sqlite3 *handle, const char *storage_id, const char *file_path, int storage_type, uid_t uid)
{
return media_svc_insert_folder(handle, storage_id, storage_type, file_path, uid);
}
int media_svc_move_item(sqlite3 *handle,
- const char *src_path,
- const char *dest_path,
- const char *media_id,
- int media_type,
- const char *mime_type,
- uid_t uid)
+ const char *src_path,
+ const char *dest_path,
+ const char *media_id,
+ int media_type,
+ const char *mime_type,
+ uid_t uid)
{
int ret = MS_MEDIA_ERR_NONE;
char *file_name = NULL;