aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-07-02 13:32:56 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-07-02 13:32:56 +0100
commitdccf92aa82ccca974a280c22708047ea2594e15a (patch)
tree2b09463eee0bf3c2c019bad664e48cac582c2130 /src/lua/lua_common.h
parentd87f4e9f5759b4cb85072b422d353cea1437df54 (diff)
downloadrspamd-dccf92aa82ccca974a280c22708047ea2594e15a.tar.gz
rspamd-dccf92aa82ccca974a280c22708047ea2594e15a.zip
[Feature] Allow lua_http module to accept upstreams
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r--src/lua/lua_common.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h
index c961d37dd..a6e98a4ba 100644
--- a/src/lua/lua_common.h
+++ b/src/lua/lua_common.h
@@ -165,6 +165,11 @@ struct rspamd_lua_cached_entry {
guint id;
};
+struct rspamd_lua_upstream {
+ struct upstream *up;
+ gint upref;
+};
+
/* Common utility functions */
/**
@@ -284,7 +289,9 @@ struct rspamd_lua_text *lua_new_text (lua_State *L, const gchar *start,
*/
bool lua_is_text_binary(struct rspamd_lua_text *t);
-struct rspamd_lua_regexp *lua_check_regexp (lua_State *L, gint pos);
+struct rspamd_lua_regexp* lua_check_regexp (lua_State *L, gint pos);
+
+struct rspamd_lua_upstream* lua_check_upstream(lua_State *L, int pos);
enum rspamd_lua_task_header_type {
RSPAMD_TASK_HEADER_PUSH_SIMPLE = 0,