aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-05 14:43:07 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-03-05 14:43:07 +0000
commit900f364e367316e80c2f21bdbadbec540f582e40 (patch)
tree7c8033b742dff3d4a51ab506208adda0b631749d /src/lua/lua_common.h
parent75327b3889c80ad0a0c95ccf4444b5c2bc148e14 (diff)
downloadrspamd-900f364e367316e80c2f21bdbadbec540f582e40.tar.gz
rspamd-900f364e367316e80c2f21bdbadbec540f582e40.zip
[Rework] Use direct hashing instead of string hashing
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r--src/lua/lua_common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h
index b46c0bfc9..31a8c2fac 100644
--- a/src/lua/lua_common.h
+++ b/src/lua/lua_common.h
@@ -176,6 +176,8 @@ void rspamd_lua_new_class(lua_State *L,
/**
* Set class name for object at @param objidx position
+* @param L
+ * @param classname **MUST BE STATIC**, direct address is used for comparisons!
*/
void rspamd_lua_setclass(lua_State *L, const gchar *classname, gint objidx);
@@ -537,7 +539,7 @@ gsize lua_logger_out_type(lua_State *L, gint pos, gchar *outbuf,
* Safely checks userdata to match specified class
* @param L
* @param pos
-* @param classname
+* @param classname **MUST BE STATIC**, direct address is used for comparisons!
*/
void *rspamd_lua_check_udata(lua_State *L, gint pos, const gchar *classname);
@@ -554,7 +556,7 @@ void *rspamd_lua_check_udata(lua_State *L, gint pos, const gchar *classname);
* Safely checks userdata to match specified class
* @param L
* @param pos
-* @param classname
+* @param classname **MUST BE STATIC**, direct address is used for comparisons!
*/
void *rspamd_lua_check_udata_maybe(lua_State *L, gint pos, const gchar *classname);