mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
Merge remote-tracking branch 'neutrino-mp/master' into pu/mp
Conflicts: src/neutrino.cpp src/nhttpd/tuxboxapi/neutrinoyparser.cpp
This commit is contained in:
@@ -187,7 +187,9 @@ const CControlAPI::TyCgiCall CControlAPI::yCgiCallList[]=
|
||||
{"reloadsetup", &CControlAPI::ReloadNeutrinoSetupCGI, ""},
|
||||
{"reloadplugins", &CControlAPI::ReloadPluginsCGI, ""},
|
||||
{"reloadchannels", &CControlAPI::ReloadChannelsCGI, ""},
|
||||
#ifdef SCREENSHOT
|
||||
{"screenshot", &CControlAPI::ScreenshotCGI, ""},
|
||||
#endif
|
||||
// boxcontrol - devices
|
||||
{"volume", &CControlAPI::VolumeCGI, "text/plain"},
|
||||
{"lcd", &CControlAPI::LCDAction, "text/plain"},
|
||||
@@ -877,6 +879,7 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh)
|
||||
if (!hh->ParamList["repeat"].empty())
|
||||
repeat = atoi(hh->ParamList["repeat"].c_str());
|
||||
#endif
|
||||
#if 0
|
||||
int evd = open(EVENTDEV, O_RDWR);
|
||||
if (evd < 0) {
|
||||
perror("opening " EVENTDEV " failed");
|
||||
@@ -896,6 +899,9 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh)
|
||||
return;
|
||||
}
|
||||
close(evd);
|
||||
#endif
|
||||
/* 0 == KEY_PRESSED in rcinput.cpp */
|
||||
g_RCInput->postMsg((neutrino_msg_t) sendcode, 0);
|
||||
hh->SendOk();
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -1959,7 +1965,7 @@ void CControlAPI::EpgCGI(CyhookHandler *hh)
|
||||
else if (!hh->ParamList["eventid"].empty()) {
|
||||
//special epg query
|
||||
uint64_t epgid = 0;
|
||||
sscanf(hh->ParamList["eventid"].c_str(), "%llu", &epgid);
|
||||
sscanf(hh->ParamList["eventid"].c_str(), "%" SCNu64 "", &epgid);
|
||||
CShortEPGData epg;
|
||||
if (CEitManager::getInstance()->getEPGidShort(epgid, &epg)) {
|
||||
hh->WriteLn(epg.title);
|
||||
@@ -1971,7 +1977,7 @@ void CControlAPI::EpgCGI(CyhookHandler *hh)
|
||||
if (!hh->ParamList["starttime"].empty()) {
|
||||
uint64_t epgid = 0;
|
||||
time_t starttime = 0;
|
||||
sscanf(hh->ParamList["fskid"].c_str(), "%llu", &epgid);
|
||||
sscanf(hh->ParamList["fskid"].c_str(), "%" SCNu64 "", &epgid);
|
||||
sscanf(hh->ParamList["starttime"].c_str(), "%lu", &starttime);
|
||||
CEPGData longepg;
|
||||
if (CEitManager::getInstance()->getEPGid(epgid, starttime, &longepg)) {
|
||||
@@ -2033,6 +2039,7 @@ void CControlAPI::ReloadChannelsCGI(CyhookHandler *hh)
|
||||
hh->SendOk();
|
||||
}
|
||||
|
||||
#ifdef SCREENSHOT
|
||||
void CControlAPI::ScreenshotCGI(CyhookHandler *hh)
|
||||
{
|
||||
bool enableOSD = true;
|
||||
@@ -2059,6 +2066,7 @@ void CControlAPI::ScreenshotCGI(CyhookHandler *hh)
|
||||
hh->SendError();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void CControlAPI::ZaptoCGI(CyhookHandler *hh)
|
||||
|
Reference in New Issue
Block a user