xbmc
pvr_general.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_GENERAL_H
10 #define C_API_ADDONINSTANCE_PVR_GENERAL_H
11 
12 #include "../inputstream/stream_constants.h"
13 #include "pvr_defines.h"
14 
15 #include <stdbool.h>
16 
17 //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
18 // "C" Definitions group 1 - General PVR
19 #ifdef __cplusplus
20 extern "C"
21 {
22 #endif /* __cplusplus */
23 
24  //============================================================================
34  typedef enum PVR_ERROR
35  {
38 
41 
44 
47 
50 
53 
56 
60 
64 
67  } PVR_ERROR;
69  //----------------------------------------------------------------------------
70 
71  //============================================================================
81  typedef enum PVR_CONNECTION_STATE
82  {
85 
89 
93 
97 
101 
104 
108 
113  //----------------------------------------------------------------------------
114 
115  //============================================================================
151 
154 #define PVR_STREAM_PROPERTY_STREAMURL "streamurl"
155 
162 #define PVR_STREAM_PROPERTY_INPUTSTREAM STREAM_PROPERTY_INPUTSTREAM
163 
172 #define PVR_STREAM_PROPERTY_INPUTSTREAM_PLAYER STREAM_PROPERTY_INPUTSTREAM_PLAYER
173 
233 #define PVR_STREAM_PROPERTY_INPUTSTREAM_INSTANCE_ID STREAM_PROPERTY_INPUTSTREAM_INSTANCE_ID
234 
237 #define PVR_STREAM_PROPERTY_MIMETYPE "mimetype"
238 
244 #define PVR_STREAM_PROPERTY_ISREALTIMESTREAM STREAM_PROPERTY_ISREALTIMESTREAM
245 
251 #define PVR_STREAM_PROPERTY_EPGPLAYBACKASLIVE "epgplaybackaslive"
252 
255 #define PVR_STREAM_PROPERTY_VALUE_INPUTSTREAMFFMPEG STREAM_PROPERTY_VALUE_INPUTSTREAMFFMPEG
256 
258  //-----------------------------------------------------------------------------
259 
267  typedef struct PVR_ADDON_CAPABILITIES
268  {
269  bool bSupportsEPG;
270  bool bSupportsEPGEdl;
271  bool bSupportsTV;
272  bool bSupportsRadio;
273  bool bSupportsRecordings;
274  bool bSupportsRecordingsUndelete;
275  bool bSupportsTimers;
276  bool bSupportsChannelGroups;
277  bool bSupportsChannelScan;
278  bool bSupportsChannelSettings;
279  bool bHandlesInputStream;
280  bool bHandlesDemuxing;
281  bool bSupportsRecordingPlayCount;
282  bool bSupportsLastPlayedPosition;
283  bool bSupportsRecordingEdl;
284  bool bSupportsRecordingsRename;
285  bool bSupportsRecordingsLifetimeChange;
286  bool bSupportsDescrambleInfo;
287  bool bSupportsAsyncEPGTransfer;
288  bool bSupportsRecordingSize;
289  bool bSupportsProviders;
290  bool bSupportsRecordingsDelete;
291 
292  unsigned int iRecordingsLifetimesSize;
293  struct PVR_ATTRIBUTE_INT_VALUE recordingsLifetimeValues[PVR_ADDON_ATTRIBUTE_VALUES_ARRAY_SIZE];
295 
296 #ifdef __cplusplus
297 }
298 #endif /* __cplusplus */
299 
300 #endif /* !C_API_ADDONINSTANCE_PVR_GENERAL_H */
"C" PVR add-on capabilities.
Definition: pvr_general.h:267
0 : Unknown state (e.g. not yet tried to connect).
Definition: pvr_general.h:84
PVR_ERROR
Definition: pvr_general.h:34
1 : Backend server is not reachable (e.g.
Definition: pvr_general.h:88
5 : Connection to backend server is established.
Definition: pvr_general.h:103
2 : Backend server is reachable, but there is not the expected type of server running (e...
Definition: pvr_general.h:92
-3 : The backend reported an error, or the add-on isn&#39;t connected.
Definition: pvr_general.h:46
0 : No error occurred.
Definition: pvr_general.h:37
7 : Connecting to backend.
Definition: pvr_general.h:110
-1 : An unknown error occurred.
Definition: pvr_general.h:40
4 : Backend server is reachable, but denies client access (e.g.
Definition: pvr_general.h:100
PVR_CONNECTION_STATE
Definition: pvr_general.h:81
-7 : The parameters of the method that was called are invalid for this operation. ...
Definition: pvr_general.h:59
-4 : The command was sent to the backend, but the response timed out.
Definition: pvr_general.h:49
-5 : The command was rejected by the backend.
Definition: pvr_general.h:52
-9 : The command failed.
Definition: pvr_general.h:66
-6 : The requested item can not be added, because it&#39;s already present.
Definition: pvr_general.h:55
6 : No connection to backend server (e.g.
Definition: pvr_general.h:107
-8 : A recording is running, so the timer can&#39;t be deleted without doing a forced delete...
Definition: pvr_general.h:63
"C" Representation of a general attribute integer value.
Definition: pvr_defines.h:47
-2 : The method that Kodi called is not implemented by the add-on.
Definition: pvr_general.h:43
3 : Backend server is reachable, but server version does not match client requirements.
Definition: pvr_general.h:96