Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
pvr_recordings.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_RECORDINGS_H
10#define C_API_ADDONINSTANCE_PVR_RECORDINGS_H
11
12#include "pvr_defines.h"
13
14#include <stdbool.h>
15#include <stdint.h>
16#include <time.h>
17
18//¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
19// "C" Definitions group 5 - PVR recordings
20#ifdef __cplusplus
21extern "C"
22{
23#endif /* __cplusplus */
24
25 //============================================================================
59 //----------------------------------------------------------------------------
60
61 //============================================================================
70#define PVR_RECORDING_INVALID_SERIES_EPISODE -1
71 //----------------------------------------------------------------------------
72
73 //============================================================================
78#define PVR_RECORDING_VALUE_NOT_AVAILABLE -1
79 //----------------------------------------------------------------------------
80
81 //============================================================================
101 //----------------------------------------------------------------------------
102
110 typedef struct PVR_RECORDING
111 {
112 const char* strRecordingId;
113 const char* strTitle;
114 const char* strTitleExtraInfo;
115 int iSeriesNumber;
116 int iEpisodeNumber;
117 int iEpisodePartNumber;
118 const char* strEpisodeName;
119 int iYear;
120 const char* strDirectory;
121 const char* strPlotOutline;
122 const char* strPlot;
123 const char* strGenreDescription;
124 const char* strChannelName;
125 const char* strIconPath;
126 const char* strThumbnailPath;
127 const char* strFanartPath;
128 time_t recordingTime;
129 int iDuration;
130 int iPriority;
131 int iLifetime;
132 int iGenreType;
133 int iGenreSubType;
134 int iPlayCount;
135 int iLastPlayedPosition;
136 bool bIsDeleted;
137 unsigned int iEpgEventId;
138 int iChannelUid;
139 enum PVR_RECORDING_CHANNEL_TYPE channelType;
140 const char* strFirstAired;
141 unsigned int iFlags;
142 int64_t sizeInBytes;
143 int iClientProviderUid;
144 const char* strProviderName;
145 unsigned int iParentalRating;
146 const char* strParentalRatingCode;
147 const char* strParentalRatingIcon;
148 const char* strParentalRatingSource;
150
151#ifdef __cplusplus
152}
153#endif /* __cplusplus */
154
155#endif /* !C_API_ADDONINSTANCE_PVR_RECORDINGS_H */
PVR_RECORDING_CHANNEL_TYPE
Definition pvr_recordings.h:90
@ PVR_RECORDING_CHANNEL_TYPE_RADIO
2 : Radio channel.
Definition pvr_recordings.h:98
@ PVR_RECORDING_CHANNEL_TYPE_TV
1 : TV channel.
Definition pvr_recordings.h:95
@ PVR_RECORDING_CHANNEL_TYPE_UNKNOWN
0 : Unknown type.
Definition pvr_recordings.h:92
PVR_RECORDING_FLAG
Definition pvr_recordings.h:39
@ PVR_RECORDING_FLAG_IS_LIVE
0001 0000 : This recording will be flagged as live.
Definition pvr_recordings.h:56
@ PVR_RECORDING_FLAG_IS_NEW
0000 0010 : This recording will be flagged as new.
Definition pvr_recordings.h:47
@ PVR_RECORDING_FLAG_UNDEFINED
0000 0000 : Nothing special to say about this recording.
Definition pvr_recordings.h:41
@ PVR_RECORDING_FLAG_IS_SERIES
0000 0001 : This recording is part of a series.
Definition pvr_recordings.h:44
@ PVR_RECORDING_FLAG_IS_FINALE
0000 1000 : This recording will be flagged as a finale.
Definition pvr_recordings.h:53
@ PVR_RECORDING_FLAG_IS_PREMIERE
0000 0100 : This recording will be flagged as a premiere.
Definition pvr_recordings.h:50
"C" PVR add-on recording.
Definition pvr_recordings.h:111