summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_dll.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_dll.h')
-rw-r--r--xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_dll.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_dll.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_dll.h
index bb9a2d4..3721971 100644
--- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_dll.h
+++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_dll.h
@@ -82,14 +82,6 @@ extern "C"
82 void EnableStream(int streamid, bool enable); 82 void EnableStream(int streamid, bool enable);
83 83
84 /*! 84 /*!
85 * Enables a stream at the given PTS.
86 * @param streamId unique id of stream
87 * @param pts position in stream in microseconds
88 * @remarks will only be called if CAPABILITIES::m_supportsEnableAtPTS is set to true
89 */
90 void EnableStreamAtPTS(int streamid, uint64_t pts);
91
92 /*!
93 * Reset the demultiplexer in the add-on. 85 * Reset the demultiplexer in the add-on.
94 * @remarks Required if bHandlesDemuxing is set to true. 86 * @remarks Required if bHandlesDemuxing is set to true.
95 */ 87 */
@@ -222,6 +214,12 @@ extern "C"
222 */ 214 */
223 bool IsRealTimeStream(); 215 bool IsRealTimeStream();
224 216
217 const char* GetApiVersion()
218 {
219 static const char *ApiVersion = INPUTSTREAM_API_VERSION;
220 return ApiVersion;
221 }
222
225 /*! 223 /*!
226 * Called by XBMC to assign the function pointers of this add-on to pClient. 224 * Called by XBMC to assign the function pointers of this add-on to pClient.
227 * @param pClient The struct to assign the function pointers to. 225 * @param pClient The struct to assign the function pointers to.
@@ -232,11 +230,11 @@ extern "C"
232 pClient->Close = Close; 230 pClient->Close = Close;
233 pClient->GetPathList = GetPathList; 231 pClient->GetPathList = GetPathList;
234 pClient->GetCapabilities = GetCapabilities; 232 pClient->GetCapabilities = GetCapabilities;
233 pClient->GetApiVersion = GetApiVersion;
235 234
236 pClient->GetStreamIds = GetStreamIds; 235 pClient->GetStreamIds = GetStreamIds;
237 pClient->GetStream = GetStream; 236 pClient->GetStream = GetStream;
238 pClient->EnableStream = EnableStream; 237 pClient->EnableStream = EnableStream;
239 pClient->EnableStreamAtPTS = EnableStreamAtPTS;
240 pClient->DemuxReset = DemuxReset; 238 pClient->DemuxReset = DemuxReset;
241 pClient->DemuxAbort = DemuxAbort; 239 pClient->DemuxAbort = DemuxAbort;
242 pClient->DemuxFlush = DemuxFlush; 240 pClient->DemuxFlush = DemuxFlush;