Kodi Development 23.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
328#define PVR_STREAM_PROPERTY_REALTIMEAUDIOPASSTHROUGH STREAM_PROPERTY_REALTIMEAUDIOPASSTHROUGH
329
335#define PVR_STREAM_PROPERTY_EPGPLAYBACKASLIVE "epgplaybackaslive"
336
343#define PVR_STREAM_PROPERTY_LIVEPLAYBACKASEPG "liveplaybackasepg"
344
347#define PVR_STREAM_PROPERTY_VALUE_INPUTSTREAMFFMPEG STREAM_PROPERTY_VALUE_INPUTSTREAMFFMPEG
348
350 //-----------------------------------------------------------------------------
351
360 {
361 bool bSupportsEPG;
362 bool bSupportsEPGEdl;
363 bool bSupportsTV;
364 bool bSupportsRadio;
365 bool bSupportsRecordings;
366 bool bSupportsRecordingsUndelete;
367 bool bSupportsTimers;
368 bool bSupportsChannelGroups;
369 bool bSupportsChannelScan;
370 bool bSupportsChannelSettings;
371 bool bHandlesInputStream;
372 bool bHandlesDemuxing;
373 bool bSupportsRecordingPlayCount;
374 bool bSupportsLastPlayedPosition;
375 bool bSupportsRecordingEdl;
376 bool bSupportsRecordingsRename;
377 bool bSupportsRecordingsLifetimeChange;
378 bool bSupportsDescrambleInfo;
379 bool bSupportsAsyncEPGTransfer;
380 bool bSupportsRecordingSize;
381 bool bSupportsProviders;
382 bool bSupportsRecordingsDelete;
383 bool bSupportsMultipleRecordedStreams;
384
385 unsigned int iRecordingsLifetimesSize;
386 struct PVR_ATTRIBUTE_INT_VALUE* recordingsLifetimeValues;
388
398 {
399 unsigned int iValuesSize;
400 struct PVR_ATTRIBUTE_INT_VALUE* values;
401 int iDefaultValue;
402 int iMinValue;
403 int iStep;
404 int iMaxValue;
406
416 {
417 unsigned int iValuesSize;
418 struct PVR_ATTRIBUTE_STRING_VALUE* values;
419 const char* strDefaultValue;
420 bool bAllowEmptyValue;
422
432 {
433 unsigned int iId;
434 const char* strName;
435 enum PVR_SETTING_TYPE eType;
436 uint64_t iReadonlyConditions;
437 struct PVR_INT_SETTING_DEFINITION* intSettingDefinition;
438 struct PVR_STRING_SETTING_DEFINITION* stringSettingDefinition;
440
451 {
452 unsigned int iKey;
453 enum PVR_SETTING_TYPE eType;
454 int iValue;
455 const char* strValue;
457
458#ifdef __cplusplus
459}
460#endif /* __cplusplus */
461
462#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:360
"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:398
"C" Representation of a setting definition.
Definition pvr_general.h:432
"C" Representation of a key-value pair, either {int,int} or {int,string}, depending on the type set.
Definition pvr_general.h:451
"C" Representation of a string setting definition.
Definition pvr_general.h:416