blob: 0d0b2a69302aba818332ee63639bd54519e4922e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef RSPAMD_LUA_H
#define RSPAMD_LUA_H
#include "config.h"
struct uri;
struct worker_task;
struct config_file;
void init_lua_filters (struct config_file *cfg);
int lua_call_header_filter (const char *function, struct worker_task *task);
int lua_call_mime_filter (const char *function, struct worker_task *task);
int lua_call_message_filter (const char *function, struct worker_task *task);
int lua_call_url_filter (const char *function, struct worker_task *task);
int lua_call_chain_filter (const char *function, struct worker_task *task, int *marks, unsigned int number);
double lua_consolidation_func (struct worker_task *task, const char *metric_name, const char *function_name);
void add_luabuf (const char *line);
#endif
|