Modify parameters of t_SetList()
[profile/tv/apps/native/filebrowser.git] / include / common.h
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __COMMON_H__
18 #define __COMMON_H__
19
20 /* Enums */
21
22 enum sources {
23         E_ALL,
24         E_TV,
25         E_USB,
26 };
27
28 enum groups {
29         E_GRP_NONE = -1,
30         E_GRP_ALL,
31         E_GRP_PHOTO,
32         E_GRP_VIDEO,
33         E_GRP_MUSIC,
34         E_GRP_OTHER,
35         E_GRP_FOLDER,
36 };
37
38 enum update_type {
39         E_USB_CONNECT,
40         E_CONTENT_UPDATE,
41 };
42
43 #define ARRAY_SIZE(array)       (sizeof(array) / sizeof(array[0]))
44
45 #endif /* __COMMON_H__ */