nhttpd/controlapi: don't build incompatibly licensed code

Origin commit data
------------------
Branch: ni/coolstream
Commit: dce95336a3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-04-14 (Sat, 14 Apr 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-04-14 12:45:18 +02:00
parent aed1b55dff
commit 8d37b53646

View File

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