summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorniubinghui <[email protected]>2024-08-13 17:22:10 +0800
committerniubinghui <[email protected]>2024-08-13 17:22:10 +0800
commit0649e332db32c63a72eafefb49edc312be0fe41c (patch)
tree5a8a39ece7b35aa69c7bd3e4133e22ecadfe51a9 /include
parentd3810797af6bf463d0ff0a78e8538a9098701280 (diff)
【修改】修改schema设计思路,将线程与插件作为数组进行管理,节约运行内存
Diffstat (limited to 'include')
-rw-r--r--include/lua_plugin_manage.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/lua_plugin_manage.h b/include/lua_plugin_manage.h
index 3801922..3f19788 100644
--- a/include/lua_plugin_manage.h
+++ b/include/lua_plugin_manage.h
@@ -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); \ No newline at end of file
+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); \ No newline at end of file