Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
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#include <stdint.h>
17
18//¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
19// "C" Definitions group 1 - General PVR
20#ifdef __cplusplus
21extern "C"
22{
23#endif /* __cplusplus */
24
25 //============================================================================
70 //----------------------------------------------------------------------------
71
72 //============================================================================
114 //----------------------------------------------------------------------------
115
116 //============================================================================
126 typedef enum PVR_SOURCE
127 {
130
133 } PVR_SOURCE;
135 //----------------------------------------------------------------------------
136
137 //============================================================================
167 //----------------------------------------------------------------------------
168
169 //============================================================================
175 typedef enum PVR_SETTING_TYPE
176 {
179
182
185 //----------------------------------------------------------------------------
186
187 //============================================================================
224
227#define PVR_STREAM_PROPERTY_STREAMURL "streamurl"
228
235#define PVR_STREAM_PROPERTY_INPUTSTREAM STREAM_PROPERTY_INPUTSTREAM
236
245#define PVR_STREAM_PROPERTY_INPUTSTREAM_PLAYER STREAM_PROPERTY_INPUTSTREAM_PLAYER
246
307#define PVR_STREAM_PROPERTY_INPUTSTREAM_INSTANCE_ID STREAM_PROPERTY_INPUTSTREAM_INSTANCE_ID
308
311#define PVR_STREAM_PROPERTY_MIMETYPE "mimetype"
312
318#define PVR_STREAM_PROPERTY_ISREALTIMESTREAM STREAM_PROPERTY_ISREALTIMESTREAM
319
325#define PVR_STREAM_PROPERTY_EPGPLAYBACKASLIVE "epgplaybackaslive"
326
333#define PVR_STREAM_PROPERTY_LIVEPLAYBACKASEPG "liveplaybackasepg"
334
337#define PVR_STREAM_PROPERTY_VALUE_INPUTSTREAMFFMPEG STREAM_PROPERTY_VALUE_INPUTSTREAMFFMPEG
338
340 //-----------------------------------------------------------------------------
341
350 {
351 bool bSupportsEPG;
352 bool bSupportsEPGEdl;
353 bool bSupportsTV;
354 bool bSupportsRadio;
355 bool bSupportsRecordings;
356 bool bSupportsRecordingsUndelete;
357 bool bSupportsTimers;
358 bool bSupportsChannelGroups;
359 bool bSupportsChannelScan;
360 bool bSupportsChannelSettings;
361 bool bHandlesInputStream;
362 bool bHandlesDemuxing;
363 bool bSupportsRecordingPlayCount;
364 bool bSupportsLastPlayedPosition;
365 bool bSupportsRecordingEdl;
366 bool bSupportsRecordingsRename;
367 bool bSupportsRecordingsLifetimeChange;
368 bool bSupportsDescrambleInfo;
369 bool bSupportsAsyncEPGTransfer;
370 bool bSupportsRecordingSize;
371 bool bSupportsProviders;
372 bool bSupportsRecordingsDelete;
373 bool bSupportsMultipleRecordedStreams;
374
375 unsigned int iRecordingsLifetimesSize;
376 struct PVR_ATTRIBUTE_INT_VALUE* recordingsLifetimeValues;
378
388 {
389 unsigned int iValuesSize;
390 struct PVR_ATTRIBUTE_INT_VALUE* values;
391 int iDefaultValue;
392 int iMinValue;
393 int iStep;
394 int iMaxValue;
396
406 {
407 unsigned int iValuesSize;
408 struct PVR_ATTRIBUTE_STRING_VALUE* values;
409 const char* strDefaultValue;
410 bool bAllowEmptyValue;
412
422 {
423 unsigned int iId;
424 const char* strName;
425 enum PVR_SETTING_TYPE eType;
426 uint64_t iReadonlyConditions;
427 struct PVR_INT_SETTING_DEFINITION* intSettingDefinition;
428 struct PVR_STRING_SETTING_DEFINITION* stringSettingDefinition;
430
441 {
442 unsigned int iKey;
443 enum PVR_SETTING_TYPE eType;
444 int iValue;
445 const char* strValue;
447
448#ifdef __cplusplus
449}
450#endif /* __cplusplus */
451
452#endif /* !C_API_ADDONINSTANCE_PVR_GENERAL_H */
PVR_CONNECTION_STATE
Definition pvr_general.h:83
@ PVR_CONNECTION_STATE_CONNECTED
5 : Connection to backend server is established.
Definition pvr_general.h:104
@ PVR_CONNECTION_STATE_VERSION_MISMATCH
3 : Backend server is reachable, but server version does not match client requirements.
Definition pvr_general.h:97
@ PVR_CONNECTION_STATE_SERVER_UNREACHABLE
1 : Backend server is not reachable (e.g. server not existing or network down).
Definition pvr_general.h:89
@ PVR_CONNECTION_STATE_ACCESS_DENIED
4 : Backend server is reachable, but denies client access (e.g. due to wrong credentials).
Definition pvr_general.h:101
@ PVR_CONNECTION_STATE_CONNECTING
7 : Connecting to backend.
Definition pvr_general.h:111
@ PVR_CONNECTION_STATE_UNKNOWN
0 : Unknown state (e.g. not yet tried to connect).
Definition pvr_general.h:85
@ PVR_CONNECTION_STATE_DISCONNECTED
6 : No connection to backend server (e.g. due to network errors or client initiated disconnect).
Definition pvr_general.h:108
@ PVR_CONNECTION_STATE_SERVER_MISMATCH
2 : Backend server is reachable, but there is not the expected type of server running (e....
Definition pvr_general.h:93
PVR_ERROR
Definition pvr_general.h:36
@ PVR_ERROR_REJECTED
-5 : The command was rejected by the backend.
Definition pvr_general.h:53
@ PVR_ERROR_FAILED
-9 : The command failed.
Definition pvr_general.h:67
@ PVR_ERROR_SERVER_ERROR
-3 : The backend reported an error, or the add-on isn't connected.
Definition pvr_general.h:47
@ PVR_ERROR_RECORDING_RUNNING
-8 : A recording is running, so the timer can't be deleted without doing a forced delete.
Definition pvr_general.h:64
@ PVR_ERROR_UNKNOWN
-1 : An unknown error occurred.
Definition pvr_general.h:41
@ PVR_ERROR_NOT_IMPLEMENTED
-2 : The method that Kodi called is not implemented by the add-on.
Definition pvr_general.h:44
@ PVR_ERROR_SERVER_TIMEOUT
-4 : The command was sent to the backend, but the response timed out.
Definition pvr_general.h:50
@ PVR_ERROR_ALREADY_PRESENT
-6 : The requested item can not be added, because it's already present.
Definition pvr_general.h:56
@ PVR_ERROR_INVALID_PARAMETERS
-7 : The parameters of the method that was called are invalid for this operation.
Definition pvr_general.h:60
@ PVR_ERROR_NO_ERROR
0 : No error occurred.
Definition pvr_general.h:38
PVR_SETTING_READONLY_CONDITION
Definition pvr_general.h:145
@ PVR_SETTING_READONLY_CONDITION_TIMER_SCHEDULED
0000 0000 0000 0000 0000 0000 0000 0010 : Readonly, if associated timer is scheduled (PVR_TIMER_STAT...
Definition pvr_general.h:155
@ PVR_SETTING_READONLY_CONDITION_NONE
0000 0000 0000 0000 0000 0000 0000 0000 : Empty value.
Definition pvr_general.h:147
@ PVR_SETTING_READONLY_CONDITION_TIMER_COMPLETED
0000 0000 0000 0000 0000 0000 0000 1000 : Readonly, if associated timer is currently recording (PVR_...
Definition pvr_general.h:163
@ PVR_SETTING_READONLY_CONDITION_TIMER_DISABLED
0000 0000 0000 0000 0000 0000 0000 0001 : Readonly, if associated timer is disabled (PVR_TIMER_STATE...
Definition pvr_general.h:151
@ PVR_SETTING_READONLY_CONDITION_TIMER_RECORDING
0000 0000 0000 0000 0000 0000 0000 0100 : Readonly, if associated timer is currently recording (PVR_...
Definition pvr_general.h:159
PVR_SETTING_TYPE
Definition pvr_general.h:176
@ INTEGER
0 : Integer
Definition pvr_general.h:178
@ STRING
1 : String
Definition pvr_general.h:181
PVR_SOURCE
Definition pvr_general.h:127
@ PVR_SOURCE_EPG_AS_LIVE
1 : From EPG, but playing back as live
Definition pvr_general.h:132
@ DEFAULT
0 : Regular live playback
Definition pvr_general.h:129
"C" PVR add-on capabilities.
Definition pvr_general.h:350
"C" Representation of an integer value, including a description.
Definition pvr_defines.h:26
"C" Representation of a string value, including a description
Definition pvr_defines.h:35
"C" Representation of an integer setting definition.
Definition pvr_general.h:388
"C" Representation of a setting definition.
Definition pvr_general.h:422
"C" Representation of a key-value pair, either {int,int} or {int,string}, depending on the type set.
Definition pvr_general.h:441
"C" Representation of a string setting definition.
Definition pvr_general.h:406