Skip to content

Commit

Permalink
Fix for gui split from after PR xbmc/xbmc#6571
Browse files Browse the repository at this point in the history
  • Loading branch information
margro committed Mar 6, 2015
1 parent 87422e6 commit d27d470
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 20 deletions.
4 changes: 2 additions & 2 deletions pvr.mediaportal.tvserver/addon.xml
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.mediaportal.tvserver"
version="1.10.1"
version="1.10.2"
name="MediaPortal PVR Client"
provider-name="Marcel Groothuis">
<requires>
<c-pluff version="0.1"/>
<import addon="xbmc.pvr" version="1.9.4"/>
<import addon="xbmc.pvr" version="1.9.5"/>
<import addon="xbmc.gui" version="5.8.0"/>
</requires>
<extension
Expand Down
3 changes: 3 additions & 0 deletions pvr.mediaportal.tvserver/changelog.txt
@@ -1,3 +1,6 @@
v1.10.2
- Updated to PVR API v1.9.5

v1.10.1
- Updated to PVR API v1.9.4
- Updated to GUI API v5.8.0
Expand Down
2 changes: 1 addition & 1 deletion src/GUIDialogRecordSettings.cpp
Expand Up @@ -21,7 +21,7 @@

#include "client.h"
#include "GUIDialogRecordSettings.h"
#include "kodi/libXBMC_gui.h"
#include "kodi/libKODI_guilib.h"
#include "timers.h"
#include "utils.h"
#include "DateTime.h"
Expand Down
22 changes: 10 additions & 12 deletions src/client.cpp
Expand Up @@ -48,13 +48,13 @@ bool g_bFastChannelSwitch = true; ///< Do
bool g_bUseRTSP = false; ///< Use RTSP streaming when using the tsreader

/* Client member variables */
ADDON_STATUS m_CurStatus = ADDON_STATUS_UNKNOWN;
cPVRClientMediaPortal *g_client = NULL;
std::string g_szUserPath = "";
std::string g_szClientPath = "";
CHelper_libXBMC_addon *XBMC = NULL;
CHelper_libXBMC_pvr *PVR = NULL;
CHelper_libXBMC_gui *GUI = NULL;
ADDON_STATUS m_CurStatus = ADDON_STATUS_UNKNOWN;
cPVRClientMediaPortal *g_client = NULL;
std::string g_szUserPath = "";
std::string g_szClientPath = "";
CHelper_libXBMC_addon *XBMC = NULL;
CHelper_libXBMC_pvr *PVR = NULL;
CHelper_libKODI_guilib *GUI = NULL;

extern "C" {

Expand Down Expand Up @@ -90,7 +90,7 @@ ADDON_STATUS ADDON_Create(void* hdl, void* props)
return ADDON_STATUS_PERMANENT_FAILURE;
}

GUI = new CHelper_libXBMC_gui;
GUI = new CHelper_libKODI_guilib;
if (!GUI->RegisterMe(hdl))
{
SAFE_DELETE(GUI);
Expand Down Expand Up @@ -452,14 +452,12 @@ const char* GetMininumPVRAPIVersion(void)

const char* GetGUIAPIVersion(void)
{
static const char *strGuiApiVersion = XBMC_GUI_API_VERSION;
return strGuiApiVersion;
return KODI_GUILIB_API_VERSION;
}

const char* GetMininumGUIAPIVersion(void)
{
static const char *strMinGuiApiVersion = XBMC_GUI_MIN_API_VERSION;
return strMinGuiApiVersion;
return KODI_GUILIB_MIN_API_VERSION;
}

//-- GetAddonCapabilities -----------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions src/client.h
Expand Up @@ -27,7 +27,7 @@
#include "kodi/util/StdString.h"
#include "kodi/libXBMC_addon.h"
#include "kodi/libXBMC_pvr.h"
#include "kodi/libXBMC_gui.h"
#include "kodi/libKODI_guilib.h"

enum eStreamingMethod
{
Expand Down Expand Up @@ -74,7 +74,7 @@ extern eStreamingMethod g_eStreamingMethod;

extern ADDON::CHelper_libXBMC_addon *XBMC;
extern CHelper_libXBMC_pvr *PVR;
extern CHelper_libXBMC_gui *GUI;
extern CHelper_libKODI_guilib *GUI;

extern int g_iTVServerXBMCBuild;

Expand Down
6 changes: 3 additions & 3 deletions src/pvrclient-mediaportal.cpp
Expand Up @@ -43,13 +43,13 @@ using namespace ADDON;
int g_iTVServerXBMCBuild = 0;

/* PVR client version (don't forget to update also the addon.xml and the Changelog.txt files) */
#define PVRCLIENT_MEDIAPORTAL_VERSION_STRING "1.9.15"
#define PVRCLIENT_MEDIAPORTAL_VERSION_STRING "1.10.2"

/* TVServerXBMC plugin supported versions */
#define TVSERVERXBMC_MIN_VERSION_STRING "1.1.7.107"
#define TVSERVERXBMC_MIN_VERSION_BUILD 107
#define TVSERVERXBMC_RECOMMENDED_VERSION_STRING "1.2.3.122, 1.3.0.122, 1.4.0.124, 1.5.0.125 or 1.6.0.126"
#define TVSERVERXBMC_RECOMMENDED_VERSION_BUILD 122
#define TVSERVERXBMC_RECOMMENDED_VERSION_STRING "1.2.3.122 till 1.10.0.127"
#define TVSERVERXBMC_RECOMMENDED_VERSION_BUILD 127

/************************************************************/
/** Class interface */
Expand Down

0 comments on commit d27d470

Please sign in to comment.