diff options
-rw-r--r-- | src/lua/lua_classnames.c | 19 | ||||
-rw-r--r-- | src/lua/lua_classnames.h | 27 |
2 files changed, 46 insertions, 0 deletions
diff --git a/src/lua/lua_classnames.c b/src/lua/lua_classnames.c new file mode 100644 index 000000000..5992da891 --- /dev/null +++ b/src/lua/lua_classnames.c @@ -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 index 000000000..5f765d9a5 --- /dev/null +++ b/src/lua/lua_classnames.h @@ -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 |