aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua-rspamd.h
blob: a99a121a385e16e0d648cacae9b78ea0ce1b4b83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef RSPAMD_LUA_H
#define RSPAMD_LUA_H

#include "config.h"
#include <lua.h>
#include <lauxlib.h>
#include <lualib.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);

#endif