From 1a94010d6b284b65495559af15abb31e4a0caee7 Mon Sep 17 00:00:00 2001 From: Jehun Lim Date: Thu, 24 Sep 2015 10:58:35 +0900 Subject: albumdata: add function to get media list in the album Change-Id: I77198f34b3f9a493855961b6e9ac555218c954b0 Signed-off-by: Jehun Lim --- include/data/albumdata.h | 10 +++++++--- include/data/datamgr.h | 4 ++-- include/data/folderdata.h | 4 ++-- include/data/mediadata.h | 14 +++++++++----- 4 files changed, 20 insertions(+), 12 deletions(-) (limited to 'include/data') diff --git a/include/data/albumdata.h b/include/data/albumdata.h index 6bc7ed2..0d566bc 100644 --- a/include/data/albumdata.h +++ b/include/data/albumdata.h @@ -20,9 +20,13 @@ struct data_ops; enum album_group_type { - E_ALBUM_NAME = 0, - E_ALBUM_ARTIST, - E_ALBUM_MAX + E_GROUP_ALBUM_NAME = 0, + E_GROUP_ALBUM_ARTIST, + E_GROUP_ALBUM_MAX +}; + +enum album_list_type { + E_LIST_ALBUM_MEDIA = 0, }; struct album_info { diff --git a/include/data/datamgr.h b/include/data/datamgr.h index 734b225..f0222b3 100644 --- a/include/data/datamgr.h +++ b/include/data/datamgr.h @@ -38,10 +38,10 @@ enum source_type { struct data_ops { void *(*create)(const char *media_type, int source_type); void (*destroy)(void *handle); - Eina_List *(*get_list)(void *handle); - int (*get_count)(void *handle, int type); + Eina_List *(*get_list)(void *handle, int type, void *data); Eina_List *(*get_group)(void *handle, int type, void *data); void (*free_group)(Eina_List *list); + int (*get_count)(void *handle, int type); }; struct datamgr { diff --git a/include/data/folderdata.h b/include/data/folderdata.h index 965e630..af1af0a 100644 --- a/include/data/folderdata.h +++ b/include/data/folderdata.h @@ -20,8 +20,8 @@ struct data_ops; enum folder_group_type { - E_FOLDER_NAME, - E_FOLDER_MAX + E_GROUP_FOLDER_NAME, + E_GROUP_FOLDER_MAX }; struct folder_info { diff --git a/include/data/mediadata.h b/include/data/mediadata.h index bc75495..709bb67 100644 --- a/include/data/mediadata.h +++ b/include/data/mediadata.h @@ -20,11 +20,15 @@ struct data_ops; enum media_group_type { - E_MEDIA_DATE = 0, - E_MEDIA_NAME, - E_MEDIA_GENRE, - E_MEDIA_TYPE, - E_MEDIA_MAX + E_GROUP_MEDIA_DATE = 0, + E_GROUP_MEDIA_NAME, + E_GROUP_MEDIA_GENRE, + E_GROUP_MEDIA_TYPE, + E_GROUP_MEDIA_MAX +}; + +enum media_list_type { + E_LIST_MEDIA = 0, }; enum media_file_type { -- cgit v1.2.3