gpointer (*init)(struct rspamd_stat_ctx *ctx, struct rspamd_config *cfg);
gpointer (*runtime)(struct rspamd_statfile_config *stcf, gpointer ctx);
gboolean (*process_token)(struct token_node_s *tok,
- struct rspamd_token_result *res, gpointer *ctx);
+ struct rspamd_token_result *res, gpointer ctx);
gulong (*total_learns)(struct rspamd_statfile_runtime *runtime, gpointer ctx);
gpointer ctx;
};
{
.name = RSPAMD_DEFAULT_BACKEND,
.init = rspamd_mmaped_file_init,
+ .process_token = rspamd_mmaped_file_process_token,
+ .total_learns = rspamd_mmaped_file_total_learns
}
};