diff options
author | Lukasz Stanislawski <l.stanislaws@samsung.com> | 2018-12-01 12:22:26 +0100 |
---|---|---|
committer | Lukasz Stanislawski <l.stanislaws@samsung.com> | 2018-12-03 08:50:27 +0100 |
commit | 00559e3812e9ec75058112320307fd1d5b15f1a5 (patch) | |
tree | 09772cd816ff266fac213ac86d86a5e2aeecbfd0 /src/data/folderdata.c | |
parent | 7a667bf4e6aaec1f7c85c6f68434626025e2a571 (diff) | |
download | air_mediahub-submit/tizen/20181203.143040.tar.gz air_mediahub-submit/tizen/20181203.143040.tar.bz2 air_mediahub-submit/tizen/20181203.143040.zip |
remove usage of deprecated APIstizen_5.5.m2_releasesubmit/tizen_5.5_wearable_hotfix/20201026.184309submit/tizen_5.5_mobile_hotfix/20201026.185109submit/tizen_5.5/20191031.000014submit/tizen_5.5/20191031.000013submit/tizen_5.5/20191031.000011submit/tizen_5.5/20191031.000009submit/tizen/20181203.143040accepted/tizen/unified/20181204.152217accepted/tizen/5.5/unified/wearable/hotfix/20201027.094609accepted/tizen/5.5/unified/mobile/hotfix/20201027.070755accepted/tizen/5.5/unified/20191031.035027tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5accepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unified
Some functionalities become broken after removal of APIs.
They will be restored in following patches.
Change-Id: I4da3499a10e0648a3dcb276274063fd1abe9adf8
Diffstat (limited to 'src/data/folderdata.c')
-rw-r--r-- | src/data/folderdata.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/data/folderdata.c b/src/data/folderdata.c index d956e59..5232eec 100644 --- a/src/data/folderdata.c +++ b/src/data/folderdata.c @@ -165,7 +165,6 @@ static void _destroy_folder_info(struct folder_info *fi) free(fi->id); free(fi->name); free(fi->path); - free(fi->parent_id); free(fi); } @@ -245,12 +244,6 @@ static bool _get_each_folder_info(media_folder_h folder, void *data) goto err; } - if (media_folder_get_parent_folder_id(folder, &(fi->parent_id)) - != MEDIA_CONTENT_ERROR_NONE) { - _ERR("failed to fetch parent folder id"); - goto err; - } - if (media_folder_get_media_count_from_db(fi->id, filter, &(fi->count)) != MEDIA_CONTENT_ERROR_NONE) { _ERR("failed to get media count"); @@ -362,6 +355,8 @@ static bool _get_folder_list(struct folderdata *fd, char **path) return false; } + //FIXME change a method of loading subfolder + //due to deprecation of FOLDER_PARENT_FOLDER_ID if (strlen(buf)) { snprintf(s, sizeof(s), " OR FOLDER_PARENT_FOLDER_ID=\"%s\"", |