This commit is contained in:
[CST] Focus
2012-02-10 19:11:39 +04:00
19 changed files with 1752 additions and 1577 deletions

View File

@@ -189,6 +189,11 @@
<td><a href="http://dbox/control/changebouquet">
http://dbox/control/changebouquet</a></td>
</tr>
<tr>
<td>41. <a href="#reloadplugins">Plugins neu laden</a></td>
<td><a href="http://dbox/control/reloadplugins">
http://dbox/control/reloadplugins</a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
@@ -1767,6 +1772,19 @@ ok<br>
&nbsp;</div>
<br>
<!-- ----------------------------------------------------------- -->
<div class="title1"><a name="reloadplugins"></a>41. Plugins neu laden</div>
<div class="URL">Handler: http://dbox/control/reloadplugins</div>
<br>
<b>Parameter:</b> keine<br>
<b>R<EFBFBD>ckgabe</b>: ok<br>
<br>
Die Pluginliste wird neu geladen.
<br>
<!-- ----------------------------------------------------------- -->

View File

@@ -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, ""},
{"reloadplugins", &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)

View File

@@ -81,6 +81,7 @@ private:
void EpgCGI(CyhookHandler *hh);
void VersionCGI(CyhookHandler *hh);
void ReloadNutrinoSetupfCGI(CyhookHandler *hh);
void ReloadPluginsCGI(CyhookHandler *hh);
void ZaptoCGI(CyhookHandler *hh);
void StartPluginCGI(CyhookHandler *hh);
void LCDAction(CyhookHandler *hh);
@@ -121,7 +122,7 @@ public:
// virtual functions for HookHandler/Hook
virtual std::string getHookName(void) {return std::string("mod_ControlAPI");}
virtual std::string getHookVersion(void) {return std::string("$Revision: 976 $");}
virtual std::string getHookVersion(void) {return std::string("$Revision$");}
virtual THandleStatus Hook_SendResponse(CyhookHandler *hh);
virtual THandleStatus Hook_PrepareResponse(CyhookHandler *hh);
};