mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
controlapi: -add relodplugins
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2084 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include <system/configure_network.h>
|
||||
#include <cs_api.h>
|
||||
#include <global.h>
|
||||
#include "gui/plugins.h"//for relodplugins
|
||||
// yhttpd
|
||||
#include "yhttpd.h"
|
||||
#include "ytypes_globals.h"
|
||||
@@ -49,6 +50,7 @@ void sectionsd_getCurrentNextServiceKey(t_channel_id uniqueServiceKey, CSections
|
||||
bool sectionsd_getLinkageDescriptorsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::LinkageDescriptorList& descriptors);
|
||||
bool sectionsd_getComponentTagsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::ComponentTagList& tags);
|
||||
|
||||
extern CPlugins *g_PluginList;//for relodplugins
|
||||
extern CBouquetManager *g_bouquetManager;
|
||||
#define EVENTDEV "/dev/input/input0"
|
||||
|
||||
@@ -172,6 +174,7 @@ const CControlAPI::TyCgiCall CControlAPI::yCgiCallList[]=
|
||||
{"info", &CControlAPI::InfoCGI, "text/plain"},
|
||||
{"version", &CControlAPI::VersionCGI, ""},
|
||||
{"reloadsetup", &CControlAPI::ReloadNutrinoSetupfCGI, ""},
|
||||
{"relodplugins", &CControlAPI::ReloadPluginsCGI, ""},
|
||||
// boxcontrol - devices
|
||||
{"volume", &CControlAPI::VolumeCGI, "text/plain"},
|
||||
{"lcd", &CControlAPI::LCDAction, "text/plain"},
|
||||
@@ -1439,6 +1442,12 @@ void CControlAPI::ReloadNutrinoSetupfCGI(CyhookHandler *hh)
|
||||
hh->SendOk();
|
||||
}
|
||||
|
||||
void CControlAPI::ReloadPluginsCGI(CyhookHandler *hh)
|
||||
{
|
||||
g_PluginList->loadPlugins();
|
||||
hh->SendOk();
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void CControlAPI::ZaptoCGI(CyhookHandler *hh)
|
||||
|
Reference in New Issue
Block a user