Codebase list kodi-pvr-njoy / de1154c
Imported Upstream version 2.4.0+git20160518 Balint Reczey 7 years ago
8 changed file(s) with 53 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
3535 #
3636 before_script:
3737 - 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
3939 - 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
4141
4242 script: make
88 option(PACKAGE_ZIP "Package Zip file?" OFF)
99
1010 find_package(TinyXML REQUIRED)
11 find_package(kodi REQUIRED)
11 find_package(Kodi REQUIRED)
1212 find_package(kodiplatform REQUIRED)
13 find_package(platform REQUIRED)
13 find_package(p8-platform REQUIRED)
1414
1515 include_directories(${kodiplatform_INCLUDE_DIRS}
16 ${platform_INCLUDE_DIRS}
16 ${p8-platform_INCLUDE_DIRS}
1717 ${TINYXML_INCLUDE_DIR}
1818 ${KODI_INCLUDE_DIR})
1919
2121 src/N7Xml.cpp)
2222
2323 set(DEPLIBS ${kodiplatform_LIBRARIES}
24 ${platform_LIBRARIES}
24 ${p8-platform_LIBRARIES}
2525 ${TINYXML_LIBRARIES})
2626
2727 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)
11 [![Coverity Scan Build Status](https://scan.coverity.com/projects/5120/badge.svg)](https://scan.coverity.com/projects/5120)
22
33 # Njoy PVR
00 <?xml version="1.0" encoding="UTF-8"?>
11 <addon
22 id="pvr.njoy"
3 version="1.11.9"
3 version="2.4.0"
44 name="Njoy N7 PVR Client"
55 provider-name="Team Kodi">
66 <requires>
77 <c-pluff version="0.1"/>
8 <import addon="xbmc.pvr" version="4.1.0"/>
8 <import addon="xbmc.pvr" version="5.2.0"/>
99 </requires>
1010 <extension
1111 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
018 1.11.9
119 - Updated Language files from Transifex
220
11
22 #include "N7Xml.h"
33 #include "tinyxml.h"
4 #include "kodi/util/XMLUtils.h"
4 #include "util/XMLUtils.h"
55
66 using namespace ADDON;
77
1919 */
2020
2121 #include "client.h"
22 #include "kodi/xbmc_pvr_dll.h"
23 #include "kodi/libKODI_guilib.h"
22 #include "xbmc_pvr_dll.h"
2423 #include "N7Xml.h"
25 #include "platform/util/util.h"
24 #include "p8-platform/util/util.h"
2625
2726 using namespace std;
2827 using namespace ADDON;
6665
6766 const char* GetGUIAPIVersion(void)
6867 {
69 return KODI_GUILIB_API_VERSION;
68 return ""; // GUI API not used
7069 }
7170
7271 const char* GetMininumGUIAPIVersion(void)
7372 {
74 return KODI_GUILIB_MIN_API_VERSION;
73 return ""; // GUI API not used
7574 }
7675
7776 ADDON_STATUS ADDON_Create(void* hdl, void* props)
188187 return;
189188 }
190189
191 void ADDON_Announce(const char *flag, const char *sender, const char *message, const void *data)
192 {
193 return;
194 }
195
196190 /***********************************************************
197191 * PVR Client AddOn specific public library functions
198192 ***********************************************************/
193
194 void OnSystemSleep()
195 {
196 }
197
198 void OnSystemWake()
199 {
200 }
201
202 void OnPowerSavingActivated()
203 {
204 }
205
206 void OnPowerSavingDeactivated()
207 {
208 }
199209
200210 PVR_ERROR GetAddonCapabilities(PVR_ADDON_CAPABILITIES *pCapabilities)
201211 {
259269 PVR_ERROR OpenDialogChannelAdd(const PVR_CHANNEL &channel) { return PVR_ERROR_NOT_IMPLEMENTED; }
260270 bool OpenLiveStream(const PVR_CHANNEL &channel) { return false; }
261271 void CloseLiveStream(void) {}
262 int GetCurrentClientChannel() { return -1; }
263272 bool SwitchChannel(const PVR_CHANNEL &channelinfo) { return false; }
264273 PVR_ERROR SignalStatus(PVR_SIGNAL_STATUS &signalStatus) { return PVR_ERROR_NOT_IMPLEMENTED; }bool OpenRecordedStream(const PVR_RECORDING &recording) { return false; }
265274 void CloseRecordedStream(void) {}
299308 time_t GetPlayingTime() { return 0; }
300309 time_t GetBufferTimeStart() { return 0; }
301310 time_t GetBufferTimeEnd() { return 0; }
311 bool IsRealTimeStream() { return true; }
302312 PVR_ERROR UndeleteRecording(const PVR_RECORDING& recording) { return PVR_ERROR_NOT_IMPLEMENTED; }
303313 PVR_ERROR DeleteAllRecordingsFromTrash() { return PVR_ERROR_NOT_IMPLEMENTED; }
314 PVR_ERROR SetEPGTimeFrame(int) { return PVR_ERROR_NOT_IMPLEMENTED; }
304315 } //end extern "C"
1919 *
2020 */
2121
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"
2525
2626 #define DEFAULT_HOST "127.0.0.1"
2727 #define DEFAULT_PORT 80