diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-02 13:45:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-02 13:45:36 +0000 |
commit | f5df796a9f91bdecb3f3e35e67fd0c52adedb685 (patch) | |
tree | 75a7c931dedad0b8343938117d74b0faeb00768f /src/rspamadm/rspamadm.h | |
parent | 5b1a87305b3c8fde5db68b191f1ac239343d01a4 (diff) | |
download | rspamd-f5df796a9f91bdecb3f3e35e67fd0c52adedb685.tar.gz rspamd-f5df796a9f91bdecb3f3e35e67fd0c52adedb685.zip |
[Feature] Allow rspamadm commands to export methods in Lua
Diffstat (limited to 'src/rspamadm/rspamadm.h')
-rw-r--r-- | src/rspamadm/rspamadm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rspamadm/rspamadm.h b/src/rspamadm/rspamadm.h index a778457bc..9a209fd91 100644 --- a/src/rspamadm/rspamadm.h +++ b/src/rspamadm/rspamadm.h @@ -25,6 +25,7 @@ GQuark rspamadm_error (void); typedef const gchar* (*rspamadm_help_func) (gboolean full_help); typedef void (*rspamadm_run_func) (gint argc, gchar **argv); +typedef void (*rspamadm_lua_exports_func) (gpointer lua_state); #define RSPAMADM_FLAG_NOHELP (1 << 0) @@ -33,6 +34,7 @@ struct rspamadm_command { guint flags; rspamadm_help_func help; rspamadm_run_func run; + rspamadm_lua_exports_func lua_subrs; }; extern const struct rspamadm_command *commands[]; |