]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Forgotten files
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 5 Mar 2024 13:42:00 +0000 (13:42 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 5 Mar 2024 13:42:00 +0000 (13:42 +0000)
src/lua/lua_classnames.c [new file with mode: 0644]
src/lua/lua_classnames.h [new file with mode: 0644]

diff --git a/src/lua/lua_classnames.c b/src/lua/lua_classnames.c
new file mode 100644 (file)
index 0000000..5992da8
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2024 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.
+ */
+
+#include "lua_classnames.h"
+
+const char *rspamd_task_classname = "rspamd{task}";
diff --git a/src/lua/lua_classnames.h b/src/lua/lua_classnames.h
new file mode 100644 (file)
index 0000000..5f765d9
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2024 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 RSPAMD_LUA_CLASSNAMES_H
+#define RSPAMD_LUA_CLASSNAMES_H
+
+/*
+ * Here are static definitions of all classes used in Rspamd Lua API
+ */
+
+extern const char *rspamd_task_classname;
+
+#endif//RSPAMD_LUA_CLASSNAMES_H