kodi
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 
26 #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
42 
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 
66  {
67  const void* callerAddress;
68  void* dataAddress;
70  };
71  typedef struct PVR_HANDLE_STRUCT* PVR_HANDLE;
72 
73 #ifdef __cplusplus
74 }
75 #endif /* __cplusplus */
76 
77 #endif /* !C_API_ADDONINSTANCE_PVR_DEFINES_H */
void * dataAddress
Definition: pvr_defines.h:68
int dataIdentifier
Definition: pvr_defines.h:69
"C" Representation of a named value.
Definition: pvr_defines.h:56
"C" Representation of a general attribute integer value.
Definition: pvr_defines.h:47
const void * callerAddress
Definition: pvr_defines.h:67
Handle used to return data from the PVR add-on to CPVRClient.
Definition: pvr_defines.h:65