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 | 38 |
1 files changed, 35 insertions, 3 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 3dbf1c8..019644b 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 | |||
| @@ -97,6 +97,35 @@ extern "C" | |||
| 97 | * @remarks Required if bSupportsEPG is set to true. Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. | 97 | * @remarks Required if bSupportsEPG is set to true. Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. |
| 98 | */ | 98 | */ |
| 99 | PVR_ERROR GetEPGForChannel(ADDON_HANDLE handle, const PVR_CHANNEL& channel, time_t iStart, time_t iEnd); | 99 | PVR_ERROR GetEPGForChannel(ADDON_HANDLE handle, const PVR_CHANNEL& channel, time_t iStart, time_t iEnd); |
| 100 | |||
| 101 | /* | ||
| 102 | * Check if the given EPG tag can be recorded. | ||
| 103 | * @param tag the epg tag to check. | ||
| 104 | * @param [out] bIsRecordable Set to true if the tag can be recorded. | ||
| 105 | * @return PVR_ERROR_NO_ERROR if bIsRecordable has been set successfully. | ||
| 106 | * @remarks Optional, return PVR_ERROR_NOT_IMPLEMENTED to let Kodi decide. | ||
| 107 | */ | ||
| 108 | PVR_ERROR IsEPGTagRecordable(const EPG_TAG* tag, bool* bIsRecordable); | ||
| 109 | |||
| 110 | /* | ||
| 111 | * Check if the given EPG tag can be played. | ||
| 112 | * @param tag the epg tag to check. | ||
| 113 | * @param [out] bIsPlayable Set to true if the tag can be played. | ||
| 114 | * @return PVR_ERROR_NO_ERROR if bIsPlayable has been set successfully. | ||
| 115 | * @remarks Required if add-on supports playing epg tags. Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. | ||
| 116 | */ | ||
| 117 | PVR_ERROR IsEPGTagPlayable(const EPG_TAG* tag, bool* bIsPlayable); | ||
| 118 | |||
| 119 | /*! | ||
| 120 | * Get the stream properties for an epg tag from the backend. | ||
| 121 | * @param[in] tag The epg tag to get the stream properties for. | ||
| 122 | * @param[inout] properties in: an array for the properties to return, out: the properties required to play the stream. | ||
| 123 | * @param[inout] iPropertiesCount in: the size of the properties array, out: the number of properties returned. | ||
| 124 | * @return PVR_ERROR_NO_ERROR if the stream is available. | ||
| 125 | * @remarks Required if add-on supports playing epg tags. In this case your implementation must fill the property PVR_STREAM_PROPERTY_STREAMURL with the URL Kodi should resolve to playback the epg tag. Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. | ||
| 126 | */ | ||
| 127 | PVR_ERROR GetEPGTagStreamProperties(const EPG_TAG* tag, PVR_NAMED_VALUE* properties, unsigned int* iPropertiesCount); | ||
| 128 | |||
| 100 | //@} | 129 | //@} |
| 101 | 130 | ||
| 102 | /*! @name PVR channel group methods | 131 | /*! @name PVR channel group methods |
| @@ -429,7 +458,7 @@ extern "C" | |||
| 429 | * Get the stream properties for a channel from the backend. | 458 | * Get the stream properties for a channel from the backend. |
| 430 | * @param[in] channel The channel to get the stream properties for. | 459 | * @param[in] channel The channel to get the stream properties for. |
| 431 | * @param[inout] properties in: an array for the properties to return, out: the properties required to play the stream. | 460 | * @param[inout] properties in: an array for the properties to return, out: the properties required to play the stream. |
| 432 | * @param[inout] iPropertiesCount: in the size of the properties array, out: the number of properties returned. | 461 | * @param[inout] iPropertiesCount in: the size of the properties array, out: the number of properties returned. |
| 433 | * @return PVR_ERROR_NO_ERROR if the stream is available. | 462 | * @return PVR_ERROR_NO_ERROR if the stream is available. |
| 434 | * @remarks Required if PVR_ADDON_CAPABILITIES::bSupportsTV or PVR_ADDON_CAPABILITIES::bSupportsRadio are set to true and PVR_ADDON_CAPABILITIES::bHandlesInputStream is set to false. In this case the implementation must fill the property PVR_STREAM_PROPERTY_STREAMURL with the URL Kodi should resolve to playback the channel. Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. | 463 | * @remarks Required if PVR_ADDON_CAPABILITIES::bSupportsTV or PVR_ADDON_CAPABILITIES::bSupportsRadio are set to true and PVR_ADDON_CAPABILITIES::bHandlesInputStream is set to false. In this case the implementation must fill the property PVR_STREAM_PROPERTY_STREAMURL with the URL Kodi should resolve to playback the channel. Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. |
| 435 | */ | 464 | */ |
| @@ -439,7 +468,7 @@ extern "C" | |||
| 439 | * Get the stream properties for a recording from the backend. | 468 | * Get the stream properties for a recording from the backend. |
| 440 | * @param[in] channel The recording to get the stream properties for. | 469 | * @param[in] channel The recording to get the stream properties for. |
| 441 | * @param[inout] properties in: an array for the properties to return, out: the properties required to play the stream. | 470 | * @param[inout] properties in: an array for the properties to return, out: the properties required to play the stream. |
| 442 | * @param[inout] iPropertiesCount: in the size of the properties array, out: the number of properties returned. | 471 | * @param[inout] iPropertiesCount in: the size of the properties array, out: the number of properties returned. |
| 443 | * @return PVR_ERROR_NO_ERROR if the stream is available. | 472 | * @return PVR_ERROR_NO_ERROR if the stream is available. |
| 444 | * @remarks Required if PVR_ADDON_CAPABILITIES::bSupportsRecordings is set to true and the add-on does not implement recording stream functions (OpenRecordedStream, ...). In this case your implementation must fill the property PVR_STREAM_PROPERTY_STREAMURL with the URL Kodi should resolve to playback the recording. Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. | 473 | * @remarks Required if PVR_ADDON_CAPABILITIES::bSupportsRecordings is set to true and the add-on does not implement recording stream functions (OpenRecordedStream, ...). In this case your implementation must fill the property PVR_STREAM_PROPERTY_STREAMURL with the URL Kodi should resolve to playback the recording. Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. |
| 445 | */ | 474 | */ |
| @@ -657,7 +686,10 @@ extern "C" | |||
| 657 | pClient->toAddon.OpenDialogChannelScan = OpenDialogChannelScan; | 686 | pClient->toAddon.OpenDialogChannelScan = OpenDialogChannelScan; |
| 658 | pClient->toAddon.MenuHook = CallMenuHook; | 687 | pClient->toAddon.MenuHook = CallMenuHook; |
| 659 | 688 | ||
| 660 | pClient->toAddon.GetEpg = GetEPGForChannel; | 689 | pClient->toAddon.GetEPGForChannel = GetEPGForChannel; |
| 690 | pClient->toAddon.IsEPGTagRecordable = IsEPGTagRecordable; | ||
| 691 | pClient->toAddon.IsEPGTagPlayable = IsEPGTagPlayable; | ||
| 692 | pClient->toAddon.GetEPGTagStreamProperties = GetEPGTagStreamProperties; | ||
| 661 | 693 | ||
| 662 | pClient->toAddon.GetChannelGroupsAmount = GetChannelGroupsAmount; | 694 | pClient->toAddon.GetChannelGroupsAmount = GetChannelGroupsAmount; |
| 663 | pClient->toAddon.GetChannelGroups = GetChannelGroups; | 695 | pClient->toAddon.GetChannelGroups = GetChannelGroups; |
