【修改】修改schema设计思路,将线程与插件作为数组进行管理,节约运行内存
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user