Change to row id instead of uuid for manageability.
Change-Id: Ic7f78f20980e72397ab55405fbc436f25cda1419
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
* @param[in] update_item The update item of notification
* @param[in] update_type The update type of notification
* @param[in] media_type The type of the media content (#media_content_type_e)
- * @param[in] uuid The UUID of media or directory, which is updated
+ * @param[in] uuid The ID of media or directory, which is updated
* @param[in] path The path of the media or directory
* @param[in] mime_type The MIME of the media info
* @param[in] user_data The user data passed from the foreach function
media_content_db_update_item_type_e update_item,
media_content_db_update_type_e update_type,
media_content_type_e media_type,
- char *uuid,
+ char *id,
char *path,
char *mime_type,
void *user_data);
* @param[in] update_item The update item of notification
* @param[in] update_type The update type of notification
* @param[in] media_type The type of the media content (#media_content_type_e)
- * @param[in] uuid The UUID of media or directory, which is updated
+ * @param[in] uuid The ID of media or directory, which is updated
* @param[in] path The path of the media or directory
* @param[in] mime_type The MIME of the media info
* @param[in] user_data The user data passed from the foreach function
media_content_db_update_item_type_e update_item,
media_content_db_update_type_e update_type,
media_content_type_e media_type,
- char *uuid,
+ char *id,
char *path,
char *mime_type,
void *user_data);
while (sqlite3_step(stmt) == SQLITE_ROW) {
media_folder_s *_folder = g_new0(media_folder_s, 1);
-
+#ifdef _USE_TVPD_MODE
_folder->folder_id = g_strdup((const char *)sqlite3_column_text(stmt, 0));
+#else
+ _folder->folder_id = g_strdup_printf("%lld", sqlite3_column_int64(stmt, 0));
+#endif
_folder->path = g_strdup((const char *)sqlite3_column_text(stmt, 1));
_folder->name = g_strdup((const char *)sqlite3_column_text(stmt, 2));
_folder->storage_type = sqlite3_column_int(stmt, 3);