summaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_config.c6
-rw-r--r--src/lua/lua_dns.c2
-rw-r--r--src/lua/lua_dns_resolver.c4
-rw-r--r--src/lua/lua_http.c4
-rw-r--r--src/lua/lua_redis.c4
-rw-r--r--src/lua/lua_spf.c2
-rw-r--r--src/lua/lua_task.c2
-rw-r--r--src/lua/lua_tcp.c2
-rw-r--r--src/lua/lua_udp.c2
9 files changed, 14 insertions, 14 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index 4a238d45e..747f7b51e 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -1180,7 +1180,7 @@ struct lua_callback_data {
/* Dynamic data */
gint stack_level;
gint order;
- struct rspamd_symcache_item *item;
+ struct rspamd_symcache_dynamic_item *item;
};
/*
@@ -1214,7 +1214,7 @@ rspamd_compare_order_func (gconstpointer a, gconstpointer b)
static void
lua_metric_symbol_callback (struct rspamd_task *task,
- struct rspamd_symcache_item *item,
+ struct rspamd_symcache_dynamic_item *item,
gpointer ud)
{
struct lua_callback_data *cd = ud;
@@ -1350,7 +1350,7 @@ static void lua_metric_symbol_callback_error (struct thread_entry *thread_entry,
static void
lua_metric_symbol_callback_coro (struct rspamd_task *task,
- struct rspamd_symcache_item *item,
+ struct rspamd_symcache_dynamic_item *item,
gpointer ud)
{
struct lua_callback_data *cd = ud;
diff --git a/src/lua/lua_dns.c b/src/lua/lua_dns.c
index fe9951e89..79ec72f94 100644
--- a/src/lua/lua_dns.c
+++ b/src/lua/lua_dns.c
@@ -31,7 +31,7 @@ struct lua_rspamd_dns_cbdata {
struct thread_entry *thread;
struct rspamd_task *task;
struct rspamd_dns_resolver *resolver;
- struct rspamd_symcache_item *item;
+ struct rspamd_symcache_dynamic_item *item;
struct rspamd_async_session *s;
};
diff --git a/src/lua/lua_dns_resolver.c b/src/lua/lua_dns_resolver.c
index c3bd4cacf..8827cb1c1 100644
--- a/src/lua/lua_dns_resolver.c
+++ b/src/lua/lua_dns_resolver.c
@@ -87,7 +87,7 @@ struct lua_dns_cbdata {
gint cbref;
gchar *to_resolve;
gchar *user_str;
- struct rspamd_symcache_item *item;
+ struct rspamd_symcache_dynamic_item *item;
struct rspamd_async_session *s;
};
@@ -358,7 +358,7 @@ lua_dns_resolver_resolve_common (lua_State *L,
struct rspamd_task *task = NULL;
GError *err = NULL;
gboolean forced = FALSE;
- struct rspamd_symcache_item *item = NULL;
+ struct rspamd_symcache_dynamic_item *item = NULL;
/* Check arguments */
if (!rspamd_lua_parse_table_arguments (L, first, &err,
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index 51fe1f272..1d6c32798 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -65,7 +65,7 @@ static const struct luaL_reg httplib_m[] = {
struct lua_http_cbdata {
struct rspamd_http_connection *conn;
struct rspamd_async_session *session;
- struct rspamd_symcache_item *item;
+ struct rspamd_symcache_dynamic_item *item;
struct rspamd_http_message *msg;
struct ev_loop *event_loop;
struct rspamd_config *cfg;
@@ -484,7 +484,7 @@ static void
lua_http_dns_handler (struct rdns_reply *reply, gpointer ud)
{
struct lua_http_cbdata *cbd = (struct lua_http_cbdata *)ud;
- struct rspamd_symcache_item *item;
+ struct rspamd_symcache_dynamic_item *item;
struct rspamd_task *task;
task = cbd->task;
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c
index 0ec2fa74e..71463d350 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -96,7 +96,7 @@ struct lua_redis_request_specific_userdata;
struct lua_redis_userdata {
redisAsyncContext *ctx;
struct rspamd_task *task;
- struct rspamd_symcache_item *item;
+ struct rspamd_symcache_dynamic_item *item;
struct rspamd_async_session *s;
struct ev_loop *event_loop;
struct rspamd_config *cfg;
@@ -150,7 +150,7 @@ struct lua_redis_ctx {
struct lua_redis_result {
gboolean is_error;
gint result_ref;
- struct rspamd_symcache_item *item;
+ struct rspamd_symcache_dynamic_item *item;
struct rspamd_async_session *s;
struct rspamd_task *task;
struct lua_redis_request_specific_userdata *sp_ud;
diff --git a/src/lua/lua_spf.c b/src/lua/lua_spf.c
index a55b511be..f6ce4905e 100644
--- a/src/lua/lua_spf.c
+++ b/src/lua/lua_spf.c
@@ -55,7 +55,7 @@ static luaL_reg rspamd_spf_record_m[] = {
struct rspamd_lua_spf_cbdata {
struct rspamd_task *task;
lua_State *L;
- struct rspamd_symcache_item *item;
+ struct rspamd_symcache_dynamic_item *item;
gint cbref;
ref_entry_t ref;
};
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 2b811f4a7..4ec8c90d6 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -4990,7 +4990,7 @@ struct tokens_foreach_cbdata {
};
static void
-tokens_foreach_cb (struct rspamd_symcache_item *item, gpointer ud)
+tokens_foreach_cb (struct rspamd_symcache_dynamic_item *item, gpointer ud)
{
struct tokens_foreach_cbdata *cbd = ud;
struct rspamd_symbol_result *s;
diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c
index 635aa885d..851e1511d 100644
--- a/src/lua/lua_tcp.c
+++ b/src/lua/lua_tcp.c
@@ -339,7 +339,7 @@ struct lua_tcp_cbdata {
struct lua_tcp_dtor *dtors;
ref_entry_t ref;
struct rspamd_task *task;
- struct rspamd_symcache_item *item;
+ struct rspamd_symcache_dynamic_item *item;
struct thread_entry *thread;
struct rspamd_config *cfg;
struct rspamd_ssl_connection *ssl_conn;
diff --git a/src/lua/lua_udp.c b/src/lua/lua_udp.c
index 4f5696a94..b976f9adf 100644
--- a/src/lua/lua_udp.c
+++ b/src/lua/lua_udp.c
@@ -66,7 +66,7 @@ struct lua_udp_cbdata {
struct rspamd_task *task;
rspamd_mempool_t *pool;
rspamd_inet_addr_t *addr;
- struct rspamd_symcache_item *item;
+ struct rspamd_symcache_dynamic_item *item;
struct rspamd_async_session *s;
struct iovec *iov;
lua_State *L;