mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-10 07:08:33 +02:00
nhttpd/controlapi: don't build incompatibly licensed code
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user