summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniubinghui <[email protected]>2024-07-31 18:22:34 +0800
committerniubinghui <[email protected]>2024-07-31 18:22:34 +0800
commit4d3b21919bd387cf074be6c041cb220cc2d00e55 (patch)
tree07fcb2398e8a4685483217beedb2842251040121
parentf86655cf78902b87840bc40b08bed7a10ce26a05 (diff)
【修改】补充修改记录
-rw-r--r--include/lua_plugin_manage.h27
1 files changed, 25 insertions, 2 deletions
diff --git a/include/lua_plugin_manage.h b/include/lua_plugin_manage.h
index 1de66e0..f38b7d5 100644
--- a/include/lua_plugin_manage.h
+++ b/include/lua_plugin_manage.h
@@ -8,7 +8,31 @@
/*************************************************************************
* version
* [ v0.1 ]
- *
+ * 07-31
+ * 1. 新增数据结构
+ * enum LPM_DATATYPE
+ * struct lpm_cdata
+ * struct lpm_ctable
+ * typedef int (*lpm_cbinding_function)(struct lpm_state *)
+ * 2. 新增接口函数
+ * lpm_cdata_clean
+ * lpm_state_instance_create
+ * lpm_state_instance_free
+ * lpm_state_instance_init
+ * lpm_cbinding_get_params_count
+ * lpm_cbinding_get_params
+ * lpm_cbinding_push_return
+ * lpm_cbinding_function_register
+ * lpm_cbinding_function_remove
+ * lpm_cdata_register
+ * lpm_cdata_remove
+ * lpm_plugin_load
+ * lpm_plugin_unload
+ * lpm_ctx_new_func
+ * lpm_ctx_free_func
+ * lpm_on_session_msg_func
+ * lpm_trans_data_luatoc
+ * lpm_trans_data_ctolua
************************************************************************/
#ifndef LUA_PLUGIN_MANAGE_INCLUDE_H
#define LUA_PLUGIN_MANAGE_INCLUDE_H
@@ -95,7 +119,6 @@ int lpm_cdata_remove(struct lpm_state * state, const char * data_name, const cha
1. 在stellar或状态机中新增一个列表, 调用该函数时每次按顺序从列表中取一个进行调用, 加载完成后每次从列表中删除一个结点
2. 增加一个参数, 函数原型修改为
void * lpm_plugin_load(struct stellar * st, int id)
-3. 所有的插件与C不同, 在init函数执行过程中完成session_plugin的注册, 插件不再注册至plugin manage中
*/
void * lpm_plugin_load(struct stellar * st);
void lpm_plugin_unload(void * plugin_env);