Kodi Development  20.0
for Binary and Script based Add-Ons
pvr_defines.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #ifndef C_API_ADDONINSTANCE_PVR_DEFINES_H
10 #define C_API_ADDONINSTANCE_PVR_DEFINES_H
11 
12 //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
13 // "C" Standard PVR definitions
14 //
15 // Values related to all parts and not used direct on addon, are to define here.
16 //
17 #ifdef __cplusplus
18 extern "C"
19 {
20 #endif /* __cplusplus */
21 
27  #define PVR_ADDON_NAME_STRING_LENGTH 1024
28  #define PVR_ADDON_URL_STRING_LENGTH 1024
29  #define PVR_ADDON_DESC_STRING_LENGTH 1024
30  #define PVR_ADDON_INPUT_FORMAT_STRING_LENGTH 32
31  #define PVR_ADDON_EDL_LENGTH 64
32  #define PVR_ADDON_TIMERTYPE_ARRAY_SIZE 32
33  #define PVR_ADDON_TIMERTYPE_VALUES_ARRAY_SIZE 512
34  #define PVR_ADDON_TIMERTYPE_VALUES_ARRAY_SIZE_SMALL 128
35  #define PVR_ADDON_TIMERTYPE_STRING_LENGTH 128
36  #define PVR_ADDON_ATTRIBUTE_DESC_LENGTH 128
37  #define PVR_ADDON_ATTRIBUTE_VALUES_ARRAY_SIZE 512
38  #define PVR_ADDON_DESCRAMBLE_INFO_STRING_LENGTH 64
39  #define PVR_ADDON_DATE_STRING_LENGTH 32
40  #define PVR_ADDON_COUNTRIES_STRING_LENGTH 128
41  #define PVR_ADDON_LANGUAGES_STRING_LENGTH 128
43 
47  typedef struct PVR_ATTRIBUTE_INT_VALUE
48  {
49  int iValue;
50  char strDescription[PVR_ADDON_ATTRIBUTE_DESC_LENGTH];
52 
56  typedef struct PVR_NAMED_VALUE
57  {
58  char strName[PVR_ADDON_NAME_STRING_LENGTH];
59  char strValue[PVR_ADDON_NAME_STRING_LENGTH];
61 
62 #ifdef __cplusplus
63 }
64 #endif /* __cplusplus */
65 
66 #endif /* !C_API_ADDONINSTANCE_PVR_DEFINES_H */
"C" Representation of a general attribute integer value.
Definition: pvr_defines.h:48
"C" Representation of a named value.
Definition: pvr_defines.h:57