diff options
| author | manuel <manuel@mausz.at> | 2016-03-09 11:28:40 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2016-03-09 11:28:40 +0100 |
| commit | c05df66e7fddc46306d2022761f141e7179954aa (patch) | |
| tree | f8da44e90c942969d4191acc9b073050d31c21f5 | |
| parent | 9fc8b732737f139d3e466510d75668ab45578960 (diff) | |
| download | kodi-pvr-build-c05df66e7fddc46306d2022761f141e7179954aa.tar.gz kodi-pvr-build-c05df66e7fddc46306d2022761f141e7179954aa.tar.bz2 kodi-pvr-build-c05df66e7fddc46306d2022761f141e7179954aa.zip | |
sync with upstream
5 files changed, 62 insertions, 14 deletions
diff --git a/project/cmake/installdata/addon-bindings.txt b/project/cmake/installdata/addon-bindings.txt index fbcdf99..9bebac6 100644 --- a/project/cmake/installdata/addon-bindings.txt +++ b/project/cmake/installdata/addon-bindings.txt | |||
| @@ -7,8 +7,12 @@ xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_dll.h | |||
| 7 | xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_types.h | 7 | xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_types.h |
| 8 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_dll.h | 8 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_dll.h |
| 9 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_types.h | 9 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_types.h |
| 10 | xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audioengine_types.h | ||
| 10 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_codec_types.h | 11 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_codec_types.h |
| 11 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_epg_types.h | 12 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_epg_types.h |
| 13 | xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_dll.h | ||
| 14 | xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_types.h | ||
| 15 | xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_vfs_types.h | ||
| 12 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h | 16 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h |
| 13 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_types.h | 17 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_types.h |
| 14 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_scr_dll.h | 18 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_scr_dll.h |
| @@ -16,11 +20,11 @@ xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_scr_types.h | |||
| 16 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_dll.h | 20 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_dll.h |
| 17 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_types.h | 21 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_types.h |
| 18 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_stream_utils.hpp | 22 | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_stream_utils.hpp |
| 19 | xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_dll.h | ||
| 20 | xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_types.h | ||
| 21 | xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_addon.h | 23 | xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_addon.h |
| 24 | xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_audioengine.h | ||
| 22 | xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_adsp.h | 25 | xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_adsp.h |
| 23 | xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_guilib.h | 26 | xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_guilib.h |
| 27 | xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_inputstream.h | ||
| 24 | xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_pvr.h | 28 | xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_pvr.h |
| 25 | xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_codec.h | 29 | xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_codec.h |
| 26 | xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxPacket.h | 30 | xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxPacket.h |
diff --git a/xbmc/addons/addon-bindings.mk b/xbmc/addons/addon-bindings.mk index 49978b7..319185a 100644 --- a/xbmc/addons/addon-bindings.mk +++ b/xbmc/addons/addon-bindings.mk | |||
| @@ -3,29 +3,29 @@ BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_addon_dll.h | |||
| 3 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_addon_types.h | 3 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_addon_types.h |
| 4 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_adsp_dll.h | 4 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_adsp_dll.h |
| 5 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_adsp_types.h | 5 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_adsp_types.h |
| 6 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audioengine_types.h | ||
| 7 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_dll.h | ||
| 8 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_types.h | ||
| 9 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_dll.h | 6 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_dll.h |
| 10 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_types.h | 7 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_types.h |
| 8 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_dll.h | ||
| 9 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_types.h | ||
| 10 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audioengine_types.h | ||
| 11 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_codec_types.h | 11 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_codec_types.h |
| 12 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_epg_types.h | 12 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_epg_types.h |
| 13 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_dll.h | 13 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_dll.h |
| 14 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_types.h | 14 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_types.h |
| 15 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_vfs_types.h | ||
| 15 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h | 16 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h |
| 16 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_types.h | 17 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_types.h |
| 17 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_scr_dll.h | 18 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_scr_dll.h |
| 18 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_scr_types.h | 19 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_scr_types.h |
| 19 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_dll.h | 20 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_dll.h |
| 20 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_types.h | 21 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_types.h |
| 21 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_stream_utils.hpp | ||
| 22 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_addon.h | 22 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_addon.h |
| 23 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_adsp.h | ||
| 24 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_audioengine.h | 23 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_audioengine.h |
| 24 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_adsp.h | ||
| 25 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_guilib.h | 25 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_guilib.h |
| 26 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_inputstream.h | ||
| 26 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_pvr.h | 27 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_pvr.h |
| 27 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_codec.h | 28 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_codec.h |
| 28 | BINDINGS+=xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_inputstream.h | ||
| 29 | BINDINGS+=xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxPacket.h | 29 | BINDINGS+=xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxPacket.h |
| 30 | BINDINGS+=xbmc/cores/AudioEngine/Utils/AEChannelData.h | 30 | BINDINGS+=xbmc/cores/AudioEngine/Utils/AEChannelData.h |
| 31 | BINDINGS+=xbmc/filesystem/IFileTypes.h | 31 | BINDINGS+=xbmc/filesystem/IFileTypes.h |
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_vfs_types.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_vfs_types.h new file mode 100644 index 0000000..b62c7b0 --- /dev/null +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_vfs_types.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2015 Team Kodi | ||
| 3 | * | ||
| 4 | * This Program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 7 | * any later version. | ||
| 8 | * | ||
| 9 | * This Program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with Kodi; see the file COPYING. If not, see | ||
| 16 | * <http://www.gnu.org/licenses/>. | ||
| 17 | * | ||
| 18 | */ | ||
| 19 | #pragma once | ||
| 20 | |||
| 21 | #include <stdint.h> | ||
| 22 | |||
| 23 | extern "C" | ||
| 24 | { | ||
| 25 | struct VFSDirEntry | ||
| 26 | { | ||
| 27 | char* label; //!< item label | ||
| 28 | char* path; //!< item path | ||
| 29 | bool folder; //!< Item is a folder | ||
| 30 | uint64_t size; //!< Size of file represented by item | ||
| 31 | }; | ||
| 32 | } | ||
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 8b54ea6..5cb6075 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 | |||
| @@ -639,8 +639,8 @@ extern "C" | |||
| 639 | /*! | 639 | /*! |
| 640 | * Tell the client the time frame to use when notifying epg events back to Kodi. The client might push epg events asynchronously | 640 | * Tell the client the time frame to use when notifying epg events back to Kodi. The client might push epg events asynchronously |
| 641 | * to Kodi using the callback function EpgEventStateChange. To be able to only push events that are actually of interest for Kodi, | 641 | * to Kodi using the callback function EpgEventStateChange. To be able to only push events that are actually of interest for Kodi, |
| 642 | * client needs to know about the epg time frame Kodi uses. Kodi calls this function once after the client add-on has been sucessfully | 642 | * client needs to know about the epg time frame Kodi uses. Kodi supplies the current epg time frame value in PVR_PROPERTIES.iEpgMaxDays |
| 643 | * initialized and then everytime the time frame value changes. | 643 | * when creating the addon and calls SetEPGTimeFrame later whenever Kodi's epg time frame value changes. |
| 644 | * @param iDays number of days from "now". EPG_TIMEFRAME_UNLIMITED means that Kodi is interested in all epg events, regardless of event times. | 644 | * @param iDays number of days from "now". EPG_TIMEFRAME_UNLIMITED means that Kodi is interested in all epg events, regardless of event times. |
| 645 | * @return PVR_ERROR_NO_ERROR if new value was successfully set. | 645 | * @return PVR_ERROR_NO_ERROR if new value was successfully set. |
| 646 | * @remarks Required if bSupportsEPG is set to true. Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. | 646 | * @remarks Required if bSupportsEPG is set to true. Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. |
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_types.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_types.h index 83bb13a..8d73310 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_types.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_types.h | |||
| @@ -77,10 +77,10 @@ struct DemuxPacket; | |||
| 77 | #define PVR_STREAM_MAX_STREAMS 20 | 77 | #define PVR_STREAM_MAX_STREAMS 20 |
| 78 | 78 | ||
| 79 | /* current PVR API version */ | 79 | /* current PVR API version */ |
| 80 | #define XBMC_PVR_API_VERSION "5.0.0" | 80 | #define XBMC_PVR_API_VERSION "5.1.0" |
| 81 | 81 | ||
| 82 | /* min. PVR API version */ | 82 | /* min. PVR API version */ |
| 83 | #define XBMC_PVR_MIN_API_VERSION "5.0.0" | 83 | #define XBMC_PVR_MIN_API_VERSION "5.1.0" |
| 84 | 84 | ||
| 85 | #ifdef __cplusplus | 85 | #ifdef __cplusplus |
| 86 | extern "C" { | 86 | extern "C" { |
| @@ -231,12 +231,23 @@ extern "C" { | |||
| 231 | } PVR_CONNECTION_STATE; | 231 | } PVR_CONNECTION_STATE; |
| 232 | 232 | ||
| 233 | /*! | 233 | /*! |
| 234 | * @brief PVR recording channel types | ||
| 235 | */ | ||
| 236 | typedef enum | ||
| 237 | { | ||
| 238 | PVR_RECORDING_CHANNEL_TYPE_UNKNOWN = 0, /*!< @brief unknown */ | ||
| 239 | PVR_RECORDING_CHANNEL_TYPE_TV = 1, /*!< @brief TV channel */ | ||
| 240 | PVR_RECORDING_CHANNEL_TYPE_RADIO = 2, /*!< @brief radio channel */ | ||
| 241 | } PVR_RECORDING_CHANNEL_TYPE; | ||
| 242 | |||
| 243 | /*! | ||
| 234 | * @brief Properties passed to the Create() method of an add-on. | 244 | * @brief Properties passed to the Create() method of an add-on. |
| 235 | */ | 245 | */ |
| 236 | typedef struct PVR_PROPERTIES | 246 | typedef struct PVR_PROPERTIES |
| 237 | { | 247 | { |
| 238 | const char* strUserPath; /*!< @brief path to the user profile */ | 248 | const char* strUserPath; /*!< @brief path to the user profile */ |
| 239 | const char* strClientPath; /*!< @brief path to this add-on */ | 249 | const char* strClientPath; /*!< @brief path to this add-on */ |
| 250 | int iEpgMaxDays; /*!< @brief if > EPG_TIMEFRAME_UNLIMITED, in async epg mode, deliver only events in the range from 'end time > now' to 'start time < now + iEpgMaxDays. EPG_TIMEFRAME_UNLIMITED, notify all events. */ | ||
| 240 | } PVR_PROPERTIES; | 251 | } PVR_PROPERTIES; |
| 241 | 252 | ||
| 242 | /*! | 253 | /*! |
| @@ -269,11 +280,11 @@ extern "C" { | |||
| 269 | unsigned int iStreamCount; | 280 | unsigned int iStreamCount; |
| 270 | struct PVR_STREAM | 281 | struct PVR_STREAM |
| 271 | { | 282 | { |
| 272 | unsigned int iPhysicalId; /*!< @brief (required) physical index */ | 283 | unsigned int iPID; /*!< @brief (required) PID */ |
| 273 | xbmc_codec_type_t iCodecType; /*!< @brief (required) codec type this stream */ | 284 | xbmc_codec_type_t iCodecType; /*!< @brief (required) codec type this stream */ |
| 274 | xbmc_codec_id_t iCodecId; /*!< @brief (required) codec id of this stream */ | 285 | xbmc_codec_id_t iCodecId; /*!< @brief (required) codec id of this stream */ |
| 275 | char strLanguage[4]; /*!< @brief (required) language id */ | 286 | char strLanguage[4]; /*!< @brief (required) language id */ |
| 276 | int iIdentifier; /*!< @brief (required) stream id */ | 287 | int iSubtitleInfo; /*!< @brief (required) Subtitle Info */ |
| 277 | int iFPSScale; /*!< @brief (required) scale of 1000 and a rate of 29970 will result in 29.97 fps */ | 288 | int iFPSScale; /*!< @brief (required) scale of 1000 and a rate of 29970 will result in 29.97 fps */ |
| 278 | int iFPSRate; /*!< @brief (required) FPS rate */ | 289 | int iFPSRate; /*!< @brief (required) FPS rate */ |
| 279 | int iHeight; /*!< @brief (required) height of the stream reported by the demuxer */ | 290 | int iHeight; /*!< @brief (required) height of the stream reported by the demuxer */ |
| @@ -479,6 +490,7 @@ extern "C" { | |||
| 479 | bool bIsDeleted; /*!< @brief (optional) shows this recording is deleted and can be undelete */ | 490 | bool bIsDeleted; /*!< @brief (optional) shows this recording is deleted and can be undelete */ |
| 480 | unsigned int iEpgEventId; /*!< @brief (optional) EPG event id associated with this recording. Valid ids must be greater than EPG_TAG_INVALID_UID. */ | 491 | unsigned int iEpgEventId; /*!< @brief (optional) EPG event id associated with this recording. Valid ids must be greater than EPG_TAG_INVALID_UID. */ |
| 481 | int iChannelUid; /*!< @brief (optional) unique identifier of the channel for this recording. PVR_CHANNEL_INVALID_UID denotes that channel uid is not available. */ | 492 | int iChannelUid; /*!< @brief (optional) unique identifier of the channel for this recording. PVR_CHANNEL_INVALID_UID denotes that channel uid is not available. */ |
| 493 | PVR_RECORDING_CHANNEL_TYPE channelType; /*!< @brief (optional) channel type. Set to PVR_RECORDING_CHANNEL_TYPE_UNKNOWN if the type cannot be determined. */ | ||
| 482 | } ATTRIBUTE_PACKED PVR_RECORDING; | 494 | } ATTRIBUTE_PACKED PVR_RECORDING; |
| 483 | 495 | ||
| 484 | /*! | 496 | /*! |
