aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_map.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-06 18:12:33 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-06 18:12:33 +0000
commit2f55351fca3143ed85ac9ebaa4590c5053ff014c (patch)
tree2aeddd89a781a663a456d25a69d84bb5d6d869e3 /src/lua/lua_map.h
parentf037213749e6c3d2bf35318b100c5e4767cc69f8 (diff)
downloadrspamd-2f55351fca3143ed85ac9ebaa4590c5053ff014c.tar.gz
rspamd-2f55351fca3143ed85ac9ebaa4590c5053ff014c.zip
[Rework] Move maps code to a separate lua unit
Diffstat (limited to 'src/lua/lua_map.h')
-rw-r--r--src/lua/lua_map.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/lua/lua_map.h b/src/lua/lua_map.h
new file mode 100644
index 000000000..01a7a639f
--- /dev/null
+++ b/src/lua/lua_map.h
@@ -0,0 +1,28 @@
+/*-
+ * Copyright 2016 Vsevolod Stakhov
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef SRC_LUA_LUA_MAP_H_
+#define SRC_LUA_LUA_MAP_H_
+
+#include "lua_common.h"
+
+LUA_PUBLIC_FUNCTION_DEF (config, add_radix_map);
+LUA_PUBLIC_FUNCTION_DEF (config, radix_from_config);
+LUA_PUBLIC_FUNCTION_DEF (config, add_map);
+LUA_PUBLIC_FUNCTION_DEF (config, add_hash_map);
+LUA_PUBLIC_FUNCTION_DEF (config, add_kv_map);
+LUA_PUBLIC_FUNCTION_DEF (config, add_map);
+
+#endif /* SRC_LUA_LUA_MAP_H_ */