diff options
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h index 27fa800..26e9099 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h | |||
| @@ -78,14 +78,14 @@ extern "C" | |||
| 78 | * Request the EPG for a channel from the backend. | 78 | * Request the EPG for a channel from the backend. |
| 79 | * EPG entries are added to Kodi by calling TransferEpgEntry() on the callback. | 79 | * EPG entries are added to Kodi by calling TransferEpgEntry() on the callback. |
| 80 | * @param handle Handle to pass to the callback method. | 80 | * @param handle Handle to pass to the callback method. |
| 81 | * @param channel The channel to get the EPG table for. | 81 | * @param iChannelUid The UID of the channel to get the EPG table for. |
| 82 | * @param iStart Get events after this time (UTC). | 82 | * @param iStart Get events after this time (UTC). |
| 83 | * @param iEnd Get events before this time (UTC). | 83 | * @param iEnd Get events before this time (UTC). |
| 84 | * @return PVR_ERROR_NO_ERROR if the table has been fetched successfully. | 84 | * @return PVR_ERROR_NO_ERROR if the table has been fetched successfully. |
| 85 | * @remarks Required if bSupportsEPG is set to true. | 85 | * @remarks Required if bSupportsEPG is set to true. |
| 86 | * Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. | 86 | * Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. |
| 87 | */ | 87 | */ |
| 88 | PVR_ERROR GetEPGForChannel(ADDON_HANDLE handle, const PVR_CHANNEL& channel, time_t iStart, time_t iEnd); | 88 | PVR_ERROR GetEPGForChannel(ADDON_HANDLE handle, int iChannelUid, time_t iStart, time_t iEnd); |
| 89 | 89 | ||
| 90 | /* | 90 | /* |
| 91 | * Check if the given EPG tag can be recorded. | 91 | * Check if the given EPG tag can be recorded. |
| @@ -413,6 +413,7 @@ extern "C" | |||
| 413 | * @param channel The channel to stream. | 413 | * @param channel The channel to stream. |
| 414 | * @return True if the stream has been opened successfully, false otherwise. | 414 | * @return True if the stream has been opened successfully, false otherwise. |
| 415 | * @remarks Required if bHandlesInputStream or bHandlesDemuxing is set to true. | 415 | * @remarks Required if bHandlesInputStream or bHandlesDemuxing is set to true. |
| 416 | * CloseLiveStream() will always be called by Kodi prior to calling this function. | ||
| 416 | * Return false if this add-on won't provide this function. | 417 | * Return false if this add-on won't provide this function. |
| 417 | */ | 418 | */ |
| 418 | bool OpenLiveStream(const PVR_CHANNEL& channel); | 419 | bool OpenLiveStream(const PVR_CHANNEL& channel); |
| @@ -497,7 +498,7 @@ extern "C" | |||
| 497 | * Get the stream properties of the stream that's currently being read. | 498 | * Get the stream properties of the stream that's currently being read. |
| 498 | * @param pProperties The properties of the currently playing stream. | 499 | * @param pProperties The properties of the currently playing stream. |
| 499 | * @return PVR_ERROR_NO_ERROR if the properties have been fetched successfully. | 500 | * @return PVR_ERROR_NO_ERROR if the properties have been fetched successfully. |
| 500 | * @remarks Required if bHandlesInputStream or bHandlesDemuxing is set to true. | 501 | * @remarks Required if bHandlesDemuxing is set to true. |
| 501 | * Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. | 502 | * Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. |
| 502 | */ | 503 | */ |
| 503 | PVR_ERROR GetStreamProperties(PVR_STREAM_PROPERTIES* pProperties); | 504 | PVR_ERROR GetStreamProperties(PVR_STREAM_PROPERTIES* pProperties); |
| @@ -523,6 +524,7 @@ extern "C" | |||
| 523 | * @param recording The recording to open. | 524 | * @param recording The recording to open. |
| 524 | * @return True if the stream has been opened successfully, false otherwise. | 525 | * @return True if the stream has been opened successfully, false otherwise. |
| 525 | * @remarks Optional, and only used if bSupportsRecordings is set to true. | 526 | * @remarks Optional, and only used if bSupportsRecordings is set to true. |
| 527 | * CloseRecordedStream() will always be called by Kodi prior to calling this function. | ||
| 526 | * Return false if this add-on won't provide this function. | 528 | * Return false if this add-on won't provide this function. |
| 527 | */ | 529 | */ |
| 528 | bool OpenRecordedStream(const PVR_RECORDING& recording); | 530 | bool OpenRecordedStream(const PVR_RECORDING& recording); |
| @@ -639,16 +641,17 @@ extern "C" | |||
| 639 | void SetSpeed(int speed); | 641 | void SetSpeed(int speed); |
| 640 | 642 | ||
| 641 | /*! | 643 | /*! |
| 642 | * Get the hostname of the pvr backend server | 644 | * Notify the pvr addon/demuxer that Kodi wishes to fill demux queue |
| 643 | * @return hostname as ip address or alias. If backend does not utilize a server, return empty string. | 645 | * @param mode The requested filling mode |
| 646 | * @remarks Optional, and only used if addon has its own demuxer. | ||
| 644 | */ | 647 | */ |
| 645 | const char* GetBackendHostname(); | 648 | void FillBuffer(bool mode); |
| 646 | 649 | ||
| 647 | /*! | 650 | /*! |
| 648 | * Check if timeshift is active | 651 | * Get the hostname of the pvr backend server |
| 649 | * @return true if timeshift is active | 652 | * @return hostname as ip address or alias. If backend does not utilize a server, return empty string. |
| 650 | */ | 653 | */ |
| 651 | bool IsTimeshifting(); | 654 | const char* GetBackendHostname(); |
| 652 | 655 | ||
| 653 | /*! | 656 | /*! |
| 654 | * Check for real-time streaming | 657 | * Check for real-time streaming |
| @@ -751,6 +754,7 @@ extern "C" | |||
| 751 | pClient->toAddon.CanSeekStream = CanSeekStream; | 754 | pClient->toAddon.CanSeekStream = CanSeekStream; |
| 752 | pClient->toAddon.SeekTime = SeekTime; | 755 | pClient->toAddon.SeekTime = SeekTime; |
| 753 | pClient->toAddon.SetSpeed = SetSpeed; | 756 | pClient->toAddon.SetSpeed = SetSpeed; |
| 757 | pClient->toAddon.FillBuffer = FillBuffer; | ||
| 754 | 758 | ||
| 755 | pClient->toAddon.OpenRecordedStream = OpenRecordedStream; | 759 | pClient->toAddon.OpenRecordedStream = OpenRecordedStream; |
| 756 | pClient->toAddon.CloseRecordedStream = CloseRecordedStream; | 760 | pClient->toAddon.CloseRecordedStream = CloseRecordedStream; |
| @@ -765,7 +769,6 @@ extern "C" | |||
| 765 | 769 | ||
| 766 | pClient->toAddon.GetBackendHostname = GetBackendHostname; | 770 | pClient->toAddon.GetBackendHostname = GetBackendHostname; |
| 767 | 771 | ||
| 768 | pClient->toAddon.IsTimeshifting = IsTimeshifting; | ||
| 769 | pClient->toAddon.IsRealTimeStream = IsRealTimeStream; | 772 | pClient->toAddon.IsRealTimeStream = IsRealTimeStream; |
| 770 | 773 | ||
| 771 | pClient->toAddon.SetEPGTimeFrame = SetEPGTimeFrame; | 774 | pClient->toAddon.SetEPGTimeFrame = SetEPGTimeFrame; |
