nhttpd/controlapi: don't build incompatibly licensed code

This commit is contained in:
Stefan Seyfried
2012-04-14 12:45:18 +02:00
parent c769089fa0
commit dce95336a3

View File

@@ -35,7 +35,9 @@
#include <global.h> #include <global.h>
#include "gui/plugins.h"//for relodplugins #include "gui/plugins.h"//for relodplugins
#include <neutrino.h> #include <neutrino.h>
#ifdef SCREENSHOT
#include <driver/screenshot.h> #include <driver/screenshot.h>
#endif
// yhttpd // yhttpd
#include "yhttpd.h" #include "yhttpd.h"
#include "ytypes_globals.h" #include "ytypes_globals.h"
@@ -177,7 +179,9 @@ const CControlAPI::TyCgiCall CControlAPI::yCgiCallList[]=
{"version", &CControlAPI::VersionCGI, ""}, {"version", &CControlAPI::VersionCGI, ""},
{"reloadsetup", &CControlAPI::ReloadNutrinoSetupfCGI, ""}, {"reloadsetup", &CControlAPI::ReloadNutrinoSetupfCGI, ""},
{"reloadplugins", &CControlAPI::ReloadPluginsCGI, ""}, {"reloadplugins", &CControlAPI::ReloadPluginsCGI, ""},
#ifdef SCREENSHOT
{"screenshot", &CControlAPI::ScreenshotCGI, ""}, {"screenshot", &CControlAPI::ScreenshotCGI, ""},
#endif
// boxcontrol - devices // boxcontrol - devices
{"volume", &CControlAPI::VolumeCGI, "text/plain"}, {"volume", &CControlAPI::VolumeCGI, "text/plain"},
{"lcd", &CControlAPI::LCDAction, "text/plain"}, {"lcd", &CControlAPI::LCDAction, "text/plain"},
@@ -1451,6 +1455,7 @@ void CControlAPI::ReloadPluginsCGI(CyhookHandler *hh)
hh->SendOk(); hh->SendOk();
} }
#ifdef SCREENSHOT
void CControlAPI::ScreenshotCGI(CyhookHandler *hh) void CControlAPI::ScreenshotCGI(CyhookHandler *hh)
{ {
CScreenShot * sc = new CScreenShot("/tmp/screenshot.png", (CScreenShot::screenshot_format_t)0 /*PNG*/); CScreenShot * sc = new CScreenShot("/tmp/screenshot.png", (CScreenShot::screenshot_format_t)0 /*PNG*/);
@@ -1458,6 +1463,7 @@ void CControlAPI::ScreenshotCGI(CyhookHandler *hh)
sc->Start(); sc->Start();
hh->SendOk(); hh->SendOk();
} }
#endif
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void CControlAPI::ZaptoCGI(CyhookHandler *hh) void CControlAPI::ZaptoCGI(CyhookHandler *hh)