【修改】修改schema设计思路,将线程与插件作为数组进行管理,节约运行内存

This commit is contained in:
niubinghui
2024-08-13 17:22:10 +08:00
parent d3810797af
commit 0649e332db
6 changed files with 581 additions and 939 deletions

View File

@@ -19,7 +19,17 @@
#include "stellar.h"
struct lua_config_specific
{
/* 插件需要使用的文件名 */
char *config_specific_file;
/* 加载插件需要调用的函数名称 */
char *config_specific_load_func;
/* 卸载插件需要调用的函数名称 */
char *config_specific_unload_func;
};
struct lua_plugin_manage_schema;
struct lua_plugin_manage_schema * lua_plugin_manage_init(struct stellar * st, const char * config_file_path);
void lua_plugin_manage_exit(struct lua_plugin_manage_schema * lua_plug_mgr);
struct lua_plugin_manage_schema *lua_plugin_manage_init(struct stellar *st, int specific_count, struct lua_config_specific *specific);
void lua_plugin_manage_exit(struct lua_plugin_manage_schema *lua_plug_mgr);