aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/backends
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstat/backends')
-rw-r--r--src/libstat/backends/backends.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstat/backends/backends.h b/src/libstat/backends/backends.h
index 55d3535f7..c25ab648e 100644
--- a/src/libstat/backends/backends.h
+++ b/src/libstat/backends/backends.h
@@ -61,6 +61,8 @@ struct rspamd_stat_backend {
gpointer runtime, gpointer ctx);
ucl_object_t* (*get_stat)(gpointer runtime, gpointer ctx);
void (*close)(gpointer ctx);
+
+ gpointer (*load_tokenizer_config)(gpointer runtime, gsize *sz);
gpointer ctx;
};
@@ -97,6 +99,8 @@ struct rspamd_stat_backend {
gpointer ctx); \
ucl_object_t * rspamd_##name##_get_stat (gpointer runtime, \
gpointer ctx); \
+ void rspamd_##name##_load_tokenizer_config (gpointer runtime, \
+ gsize *len); \
void rspamd_##name##_close (gpointer ctx)
RSPAMD_STAT_BACKEND_DEF(mmaped_file);