aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs_helper.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-27 12:58:23 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-27 13:10:40 +0000
commit19f28d85479e4d0e97d15f8ad05890c01fd033f3 (patch)
tree872e6e6ae0ee02bd76a2e36107e5f0b1893c582b /src/hs_helper.c
parent424ac722959351c8332e185e36fb7daddff24faf (diff)
downloadrspamd-19f28d85479e4d0e97d15f8ad05890c01fd033f3.tar.gz
rspamd-19f28d85479e4d0e97d15f8ad05890c01fd033f3.zip
Add ability to insert documentation strings
Issue: #461
Diffstat (limited to 'src/hs_helper.c')
-rw-r--r--src/hs_helper.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/hs_helper.c b/src/hs_helper.c
index 1d49537c0..7ca14e672 100644
--- a/src/hs_helper.c
+++ b/src/hs_helper.c
@@ -75,13 +75,22 @@ init_hs_helper (struct rspamd_config *cfg)
ctx->hs_dir = RSPAMD_DBDIR "/";
ctx->max_time = default_max_time;
- rspamd_rcl_register_worker_option (cfg, type, "cache_dir",
- rspamd_rcl_parse_struct_string, ctx,
- G_STRUCT_OFFSET (struct hs_helper_ctx, hs_dir), 0);
- rspamd_rcl_register_worker_option (cfg, type, "max_time",
- rspamd_rcl_parse_struct_time, ctx,
+ rspamd_rcl_register_worker_option (cfg,
+ type,
+ "cache_dir",
+ rspamd_rcl_parse_struct_string,
+ ctx,
+ G_STRUCT_OFFSET (struct hs_helper_ctx, hs_dir),
+ 0,
+ NULL);
+ rspamd_rcl_register_worker_option (cfg,
+ type,
+ "max_time",
+ rspamd_rcl_parse_struct_time,
+ ctx,
G_STRUCT_OFFSET (struct hs_helper_ctx, max_time),
- RSPAMD_CL_FLAG_TIME_FLOAT);
+ RSPAMD_CL_FLAG_TIME_FLOAT,
+ NULL);
return ctx;
}