Imported Upstream version 2.4.0+git20160518
Balint Reczey
7 years ago
35 | 35 | # |
36 | 36 | before_script: |
37 | 37 | - cd $TRAVIS_BUILD_DIR/.. |
38 | - git clone -b Jarvis --depth=1 https://github.com/xbmc/xbmc.git | |
38 | - git clone --depth=1 https://github.com/xbmc/xbmc.git | |
39 | 39 | - cd pvr.njoy && mkdir build && cd build |
40 | - cmake -DADDONS_TO_BUILD=pvr.njoy -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons | |
40 | - cmake -DADDONS_TO_BUILD=pvr.njoy -DADDON_SRC_PREFIX=$TRAVIS_BUILD_DIR/.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/../xbmc/addons -DPACKAGE_ZIP=1 $TRAVIS_BUILD_DIR/../xbmc/project/cmake/addons | |
41 | 41 | |
42 | 42 | script: make |
8 | 8 | option(PACKAGE_ZIP "Package Zip file?" OFF) |
9 | 9 | |
10 | 10 | find_package(TinyXML REQUIRED) |
11 | find_package(kodi REQUIRED) | |
11 | find_package(Kodi REQUIRED) | |
12 | 12 | find_package(kodiplatform REQUIRED) |
13 | find_package(platform REQUIRED) | |
13 | find_package(p8-platform REQUIRED) | |
14 | 14 | |
15 | 15 | include_directories(${kodiplatform_INCLUDE_DIRS} |
16 | ${platform_INCLUDE_DIRS} | |
16 | ${p8-platform_INCLUDE_DIRS} | |
17 | 17 | ${TINYXML_INCLUDE_DIR} |
18 | 18 | ${KODI_INCLUDE_DIR}) |
19 | 19 | |
21 | 21 | src/N7Xml.cpp) |
22 | 22 | |
23 | 23 | set(DEPLIBS ${kodiplatform_LIBRARIES} |
24 | ${platform_LIBRARIES} | |
24 | ${p8-platform_LIBRARIES} | |
25 | 25 | ${TINYXML_LIBRARIES}) |
26 | 26 | |
27 | 27 | build_addon(pvr.njoy NJOY DEPLIBS) |
0 | [![Build Status](https://travis-ci.org/kodi-pvr/pvr.njoy.svg?branch=Jarvis)](https://travis-ci.org/kodi-pvr/pvr.njoy) | |
0 | [![Build Status](https://travis-ci.org/kodi-pvr/pvr.njoy.svg?branch=master)](https://travis-ci.org/kodi-pvr/pvr.njoy) | |
1 | 1 | [![Coverity Scan Build Status](https://scan.coverity.com/projects/5120/badge.svg)](https://scan.coverity.com/projects/5120) |
2 | 2 | |
3 | 3 | # Njoy PVR |
0 | 0 | <?xml version="1.0" encoding="UTF-8"?> |
1 | 1 | <addon |
2 | 2 | id="pvr.njoy" |
3 | version="1.11.9" | |
3 | version="2.4.0" | |
4 | 4 | name="Njoy N7 PVR Client" |
5 | 5 | provider-name="Team Kodi"> |
6 | 6 | <requires> |
7 | 7 | <c-pluff version="0.1"/> |
8 | <import addon="xbmc.pvr" version="4.1.0"/> | |
8 | <import addon="xbmc.pvr" version="5.2.0"/> | |
9 | 9 | </requires> |
10 | 10 | <extension |
11 | 11 | point="xbmc.pvrclient" |
0 | 2.4.0 | |
1 | - Cmake: rename find_package kodi to Kodi | |
2 | ||
3 | 2.3.1 | |
4 | - Fix includes | |
5 | ||
6 | 2.3.0 | |
7 | - Updated to PVR addon API v5.2.0 | |
8 | ||
9 | 2.2.0 | |
10 | - Updated to PVR addon API v5.1.0 | |
11 | ||
12 | 2.1.0 | |
13 | - Updated to PVR addon API v5.0.0 | |
14 | ||
15 | 2.0.0 | |
16 | - Initial Kodi Krypton version. | |
17 | ||
0 | 18 | 1.11.9 |
1 | 19 | - Updated Language files from Transifex |
2 | 20 |
1 | 1 | |
2 | 2 | #include "N7Xml.h" |
3 | 3 | #include "tinyxml.h" |
4 | #include "kodi/util/XMLUtils.h" | |
4 | #include "util/XMLUtils.h" | |
5 | 5 | |
6 | 6 | using namespace ADDON; |
7 | 7 |
19 | 19 | */ |
20 | 20 | |
21 | 21 | #include "client.h" |
22 | #include "kodi/xbmc_pvr_dll.h" | |
23 | #include "kodi/libKODI_guilib.h" | |
22 | #include "xbmc_pvr_dll.h" | |
24 | 23 | #include "N7Xml.h" |
25 | #include "platform/util/util.h" | |
24 | #include "p8-platform/util/util.h" | |
26 | 25 | |
27 | 26 | using namespace std; |
28 | 27 | using namespace ADDON; |
66 | 65 | |
67 | 66 | const char* GetGUIAPIVersion(void) |
68 | 67 | { |
69 | return KODI_GUILIB_API_VERSION; | |
68 | return ""; // GUI API not used | |
70 | 69 | } |
71 | 70 | |
72 | 71 | const char* GetMininumGUIAPIVersion(void) |
73 | 72 | { |
74 | return KODI_GUILIB_MIN_API_VERSION; | |
73 | return ""; // GUI API not used | |
75 | 74 | } |
76 | 75 | |
77 | 76 | ADDON_STATUS ADDON_Create(void* hdl, void* props) |
188 | 187 | return; |
189 | 188 | } |
190 | 189 | |
191 | void ADDON_Announce(const char *flag, const char *sender, const char *message, const void *data) | |
192 | { | |
193 | return; | |
194 | } | |
195 | ||
196 | 190 | /*********************************************************** |
197 | 191 | * PVR Client AddOn specific public library functions |
198 | 192 | ***********************************************************/ |
193 | ||
194 | void OnSystemSleep() | |
195 | { | |
196 | } | |
197 | ||
198 | void OnSystemWake() | |
199 | { | |
200 | } | |
201 | ||
202 | void OnPowerSavingActivated() | |
203 | { | |
204 | } | |
205 | ||
206 | void OnPowerSavingDeactivated() | |
207 | { | |
208 | } | |
199 | 209 | |
200 | 210 | PVR_ERROR GetAddonCapabilities(PVR_ADDON_CAPABILITIES *pCapabilities) |
201 | 211 | { |
259 | 269 | PVR_ERROR OpenDialogChannelAdd(const PVR_CHANNEL &channel) { return PVR_ERROR_NOT_IMPLEMENTED; } |
260 | 270 | bool OpenLiveStream(const PVR_CHANNEL &channel) { return false; } |
261 | 271 | void CloseLiveStream(void) {} |
262 | int GetCurrentClientChannel() { return -1; } | |
263 | 272 | bool SwitchChannel(const PVR_CHANNEL &channelinfo) { return false; } |
264 | 273 | PVR_ERROR SignalStatus(PVR_SIGNAL_STATUS &signalStatus) { return PVR_ERROR_NOT_IMPLEMENTED; }bool OpenRecordedStream(const PVR_RECORDING &recording) { return false; } |
265 | 274 | void CloseRecordedStream(void) {} |
299 | 308 | time_t GetPlayingTime() { return 0; } |
300 | 309 | time_t GetBufferTimeStart() { return 0; } |
301 | 310 | time_t GetBufferTimeEnd() { return 0; } |
311 | bool IsRealTimeStream() { return true; } | |
302 | 312 | PVR_ERROR UndeleteRecording(const PVR_RECORDING& recording) { return PVR_ERROR_NOT_IMPLEMENTED; } |
303 | 313 | PVR_ERROR DeleteAllRecordingsFromTrash() { return PVR_ERROR_NOT_IMPLEMENTED; } |
314 | PVR_ERROR SetEPGTimeFrame(int) { return PVR_ERROR_NOT_IMPLEMENTED; } | |
304 | 315 | } //end extern "C" |
19 | 19 | * |
20 | 20 | */ |
21 | 21 | |
22 | #include "platform/util/StdString.h" | |
23 | #include "kodi/libXBMC_addon.h" | |
24 | #include "kodi/libXBMC_pvr.h" | |
22 | #include "p8-platform/util/StdString.h" | |
23 | #include "libXBMC_addon.h" | |
24 | #include "libXBMC_pvr.h" | |
25 | 25 | |
26 | 26 | #define DEFAULT_HOST "127.0.0.1" |
27 | 27 | #define DEFAULT_PORT 80 |