Skip to content

Commit

Permalink
Merge pull request #14 from ksooo/pvr-api-5-0-0
Browse files Browse the repository at this point in the history
Implement PVR API 5.0.0
  • Loading branch information
ksooo committed Feb 16, 2016
2 parents 0df8d29 + d0020ca commit 020592b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
5 changes: 2 additions & 3 deletions pvr.hdhomerun/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.hdhomerun"
version="2.0.2"
version="2.1.0"
name="PVR HDHomeRun Client"
provider-name="Zoltan Csizmadia (zcsizmadia@gmail.com)">
<requires>
<c-pluff version="0.1"/>
<import addon="xbmc.pvr" version="4.2.0"/>
<import addon="kodi.guilib" version="5.10.0"/>
<import addon="xbmc.pvr" version="5.0.0"/>
</requires>
<extension
point="xbmc.pvrclient"
Expand Down
3 changes: 3 additions & 0 deletions pvr.hdhomerun/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v2.1.0
- Update to PVR addon API v5.0.0

v2.0.2
- Updated to PVR API v4.2.0

Expand Down
11 changes: 3 additions & 8 deletions src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

#include "client.h"
#include <kodi/xbmc_pvr_dll.h>
#include <kodi/libKODI_guilib.h>
#include <p8-platform/util/util.h>
#include <p8-platform/threads/threads.h>
#include "HDHomeRunTuners.h"
Expand Down Expand Up @@ -223,12 +222,12 @@ const char* GetMininumPVRAPIVersion(void)

const char* GetGUIAPIVersion(void)
{
return KODI_GUILIB_API_VERSION;
return ""; // GUI API not used
}

const char* GetMininumGUIAPIVersion(void)
{
return KODI_GUILIB_MIN_API_VERSION;
return ""; // GUI API not used
}

PVR_ERROR GetAddonCapabilities(PVR_ADDON_CAPABILITIES* pCapabilities)
Expand Down Expand Up @@ -318,11 +317,6 @@ void CloseLiveStream(void)
g.iCurrentChannelUniqueId = 0;
}

int GetCurrentClientChannel(void)
{
return g.iCurrentChannelUniqueId;
}

bool SwitchChannel(const PVR_CHANNEL &channel)
{
CloseLiveStream();
Expand Down Expand Up @@ -397,4 +391,5 @@ PVR_ERROR DeleteAllRecordingsFromTrash() { return PVR_ERROR_NOT_IMPLEMENTED; }
PVR_ERROR GetTimerTypes(PVR_TIMER_TYPE types[], int *size) { return PVR_ERROR_NOT_IMPLEMENTED; }
bool IsTimeshifting(void) { return false; }
bool IsRealTimeStream(void) { return true; }
PVR_ERROR SetEPGTimeFrame(int) { return PVR_ERROR_NOT_IMPLEMENTED; }
}

0 comments on commit 020592b

Please sign in to comment.