diff options
author | Jehun Lim <jehun.lim@samsung.com> | 2015-09-21 14:47:34 +0900 |
---|---|---|
committer | Jehun Lim <jehun.lim@samsung.com> | 2015-09-21 14:54:28 +0900 |
commit | d9a9d0449f3e5693a9fc2ba15f81e47d2ecd4813 (patch) | |
tree | a1574920f891fdc3cb8b70ccb96c73a7aa351f15 /include/data | |
parent | 5a9d0b45c1ea3679f0c37b55fdba36cf8f041d54 (diff) | |
download | air_mediahub-d9a9d0449f3e5693a9fc2ba15f81e47d2ecd4813.tar.gz air_mediahub-d9a9d0449f3e5693a9fc2ba15f81e47d2ecd4813.tar.bz2 air_mediahub-d9a9d0449f3e5693a9fc2ba15f81e47d2ecd4813.zip |
datamgr: add folderdatasubmit/tizen/20150921.123936accepted/tizen/tv/20150922.001350
Change-Id: I127e16c9f61804c264719f6014ba1ba0351a1f12
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
Diffstat (limited to 'include/data')
-rw-r--r-- | include/data/datamgr.h | 5 | ||||
-rw-r--r-- | include/data/folderdata.h | 38 |
2 files changed, 41 insertions, 2 deletions
diff --git a/include/data/datamgr.h b/include/data/datamgr.h index fb87dd5..734b225 100644 --- a/include/data/datamgr.h +++ b/include/data/datamgr.h @@ -19,12 +19,13 @@ #include "data/mediadata.h" #include "data/albumdata.h" +#include "data/folderdata.h" enum data_type { E_DATA_MEDIA = 0, E_DATA_ALBUM, + E_DATA_FOLDER, E_DATA_MAX - /* Folder will be added later */ }; enum source_type { @@ -39,7 +40,7 @@ struct data_ops { void (*destroy)(void *handle); Eina_List *(*get_list)(void *handle); int (*get_count)(void *handle, int type); - Eina_List *(*get_group)(void *handle, int type); + Eina_List *(*get_group)(void *handle, int type, void *data); void (*free_group)(Eina_List *list); }; diff --git a/include/data/folderdata.h b/include/data/folderdata.h new file mode 100644 index 0000000..965e630 --- /dev/null +++ b/include/data/folderdata.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef _AIR_MEDIAHUB_FOLDERDATA_H__ +#define _AIR_MEDIAHUB_FOLDERDATA_H__ + +struct data_ops; + +enum folder_group_type { + E_FOLDER_NAME, + E_FOLDER_MAX +}; + +struct folder_info { + char *id; + char *name; + char *path; + char *parent_id; + + int count; +}; + +struct data_ops *folderdata_get_ops(void); + +#endif /* _AIR_MEDIAHUB_FOLDERDATA_H__ */ |