mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
#include "skindesignerapi.h"
|
|
|
|
skindesignerapi::SkindesignerAPI *skindesignerapi::SkindesignerAPI::skindesigner = NULL;
|
|
|
|
skindesignerapi::SkindesignerAPI::SkindesignerAPI(void) {
|
|
if (skindesigner != NULL)
|
|
esyslog("skindesigner should only be loaded once");
|
|
else
|
|
skindesigner = this;
|
|
}
|
|
|
|
skindesignerapi::SkindesignerAPI::~SkindesignerAPI(void) {
|
|
if (skindesigner == this)
|
|
skindesigner = NULL;
|
|
}
|
|
|
|
bool skindesignerapi::SkindesignerAPI::ServiceAvailable(void) {
|
|
if (skindesigner)
|
|
return true;
|
|
return false;
|
|
}
|
|
|
|
bool skindesignerapi::SkindesignerAPI::RegisterPlugin(cPluginStructure *plugStructure) {
|
|
if (skindesigner)
|
|
return skindesigner->ServiceRegisterPlugin(plugStructure);
|
|
return false;
|
|
}
|
|
|
|
skindesignerapi::ISDDisplayMenu *skindesignerapi::SkindesignerAPI::GetDisplayMenu() {
|
|
if (skindesigner)
|
|
return skindesigner->ServiceGetDisplayMenu();
|
|
return NULL;
|
|
}
|
|
|
|
skindesignerapi::ISkinDisplayPlugin *skindesignerapi::SkindesignerAPI::GetDisplayPlugin(int plugId) {
|
|
if (skindesigner)
|
|
return skindesigner->ServiceGetDisplayPlugin(plugId);
|
|
return NULL;
|
|
}
|