neutrino: add a prototype of a lua plugin interface

this is just for preliminary tests, not yet really usable
for anything useful


Origin commit data
------------------
Branch: ni/coolstream
Commit: f26357e887
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-17 (Sun, 17 Mar 2013)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-03-17 23:24:45 +01:00
committed by Michael Liebmann
parent 81ec9a0e26
commit 88c69c92bd
8 changed files with 378 additions and 6 deletions

View File

@@ -51,7 +51,8 @@ class CPlugins
P_TYPE_DISABLED = 0x1,
P_TYPE_GAME = 0x2,
P_TYPE_TOOL = 0x4,
P_TYPE_SCRIPT = 0x8
P_TYPE_SCRIPT = 0x8,
P_TYPE_LUA = 0x10
}
p_type_t;
@@ -122,6 +123,7 @@ class CPlugins
void startPlugin(int number,int param);
void start_plugin_by_name(const std::string & filename,int param);// start plugins by "name=" in .cfg
void startScriptPlugin(int number);
void startLuaPlugin(int number);
void startPlugin(const char * const filename); // start plugins also by name
bool hasPlugin(CPlugins::p_type_t type);