aboutsummaryrefslogtreecommitdiffstats
path: root/controller/ctl-plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'controller/ctl-plugin.h')
-rw-r--r--controller/ctl-plugin.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/controller/ctl-plugin.h b/controller/ctl-plugin.h
index 7934d8d..361fd34 100644
--- a/controller/ctl-plugin.h
+++ b/controller/ctl-plugin.h
@@ -43,6 +43,8 @@ extern "C" {
#define UNUSED_FUNCTION(x) __attribute__((__unused__)) UNUSED_ ## x
#endif
+typedef struct luaL_Reg luaL_Reg;
+
typedef struct {
char *label;
char *info;
@@ -50,25 +52,26 @@ typedef struct {
void *context;
} CtlSourceT;
-
typedef struct {
long magic;
const char *label;
void *handle;
} CtlPluginMagicT;
-
typedef struct {
const char *label;
const char *info;
const char *version;
void *context;
void *dlHandle;
+#ifdef CONTROL_SUPPORT_LUA
+ luaL_Reg *l2cFunc;
+ int l2cCount;
+#endif
} CtlPluginT;
typedef void*(*DispatchPluginInstallCbT)(CtlPluginT *plugin, void* handle);
-
#define MACRO_STR_VALUE(arg) #arg
#define CTLP_REGISTER(pluglabel) CtlPluginMagicT CtlPluginMagic={.magic=CTL_PLUGIN_MAGIC,.label=pluglabel,.handle=NULL}; struct afb_binding_data_v2;
#define CTLP_ONLOAD(plugin, handle) void* CtlPluginOnload(CtlPluginT *plugin, void* handle)