aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm/rspamadm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rspamadm/rspamadm.h')
-rw-r--r--src/rspamadm/rspamadm.h2
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[];