summaryrefslogtreecommitdiff
path: root/plex.cpp
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-04-12 12:45:12 +0200
committerchriszero <zerov83@gmail.com>2015-04-12 12:45:12 +0200
commit18194b793d6542340080b27d72f0b66e656ae7bf (patch)
treeb4f7e848a1a1bc358255fb83a785ab8d689b0d8d /plex.cpp
parent4bf454247a21b684f2bb0ac763adeea18a86d153 (diff)
downloadvdr-plugin-plex-18194b793d6542340080b27d72f0b66e656ae7bf.tar.gz
vdr-plugin-plex-18194b793d6542340080b27d72f0b66e656ae7bf.tar.bz2
libskindesignerapi support
Diffstat (limited to 'plex.cpp')
-rw-r--r--plex.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/plex.cpp b/plex.cpp
index 780d58b..3cc091d 100644
--- a/plex.cpp
+++ b/plex.cpp
@@ -5,7 +5,7 @@
#include "plexSdOsd.h"
#include "pictureCache.h"
-#include "libskindesigner/services.h"
+#include <libskindesignerapi/skindesignerapi.h>
//////////////////////////////////////////////////////////////////////////////
// cPlugin
@@ -58,8 +58,9 @@ const char *cMyPlugin::Description(void)
bool cMyPlugin::Start(void)
{
- RegisterPlugin reg;
+ skindesignerapi::cPluginStructure reg;
reg.name = "plex";
+ reg.libskindesignerAPIVersion = LIBSKINDESIGNERAPIVERSION;
reg.SetView(viRootView, "root.xml");
reg.SetViewGrid(eViews::viRootView, eViewGrids::vgBrowser, "browser");
@@ -67,19 +68,17 @@ bool cMyPlugin::Start(void)
reg.SetViewElement(viRootView, verBackground, "background");
reg.SetViewElement(viRootView, verInfopane, "infopane");
reg.SetViewElement(viRootView, verFooter, "footer");
-
+/*
reg.SetSubView(viRootView, viDetailView, "detail.xml");
reg.SetViewElement(viDetailView, vedBackground, "background");
reg.SetViewElement(viDetailView, vedHeader, "header");
reg.SetViewElement(viDetailView, vedFooter, "footer");
-
- static cPlugin *pSkinDesigner = cPluginManager::GetPlugin("skindesigner");
- if (pSkinDesigner) {
- pSkinDesigner->Service("RegisterPlugin", &reg);
+*/
+ if (skindesignerapi::SkindesignerAPI::RegisterPlugin(&reg)) {
m_pSdCheck = new cPlexSdOsd();
cMyPlugin::bSkindesigner = m_pSdCheck->SdSupport();
} else {
- esyslog("[plex]: skindesigner not available");
+ esyslog("[plex]: %s skindesigner not available", __FUNCTION__);
}
return true;
}