summaryrefslogtreecommitdiff
path: root/src/lua_binding_function.h
diff options
context:
space:
mode:
authorniubinghui <[email protected]>2024-09-06 18:55:31 +0800
committerniubinghui <[email protected]>2024-09-06 18:55:31 +0800
commit425cd807d3762dad049419e1636f45c3a67bb2b1 (patch)
treec4ab951dbddd08363c3d680d0055fa2b429b4004 /src/lua_binding_function.h
parentf8dcaabfbdd3b00113251d220dce231ef1696205 (diff)
【修改】BugFix:基础功能验证过程中发现的一些bug
Diffstat (limited to 'src/lua_binding_function.h')
-rw-r--r--src/lua_binding_function.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lua_binding_function.h b/src/lua_binding_function.h
index 0a063ae..b031c08 100644
--- a/src/lua_binding_function.h
+++ b/src/lua_binding_function.h
@@ -8,9 +8,9 @@
/* ***** ***** ***** ***** ***** ***** */
/* 需要注册至lua中供lua调用的所有函数原型 */
/* 通用函数 */
-int lua_get_worker_thread_num(struct lua_state * state);
-int lua_get_current_thread_id(struct lua_state * state);
-int lua_get_stellar_pointer(struct lua_state * state);
+int lua_get_worker_thread_num(struct lua_state *state);
+int lua_get_current_thread_id(struct lua_state *state);
+int lua_get_stellar_pointer(struct lua_state *state);
// int lua_get_plugin_manage_pointer(struct lua_state *state);
/* 注册函数 */
@@ -21,12 +21,12 @@ int lua_packet_plugin_regist(struct lua_state *state);
int lua_session_get_type(struct lua_state *state);
/* packet message mq相关的函数 */
-int lua_packet_mq_create_topic(struct lua_state * state);
-int lua_packet_mq_get_topic_id(struct lua_state * state);
-int lua_packet_mq_update_topic(struct lua_state * state);
-int lua_packet_mq_destory_topic(struct lua_state * state);
-int lua_packet_mq_subscribe_topic(struct lua_state * state);
-int lua_packet_mq_publish_message(struct lua_state * state);
+int lua_packet_mq_create_topic(struct lua_state *state);
+int lua_packet_mq_get_topic_id(struct lua_state *state);
+int lua_packet_mq_update_topic(struct lua_state *state);
+int lua_packet_mq_destory_topic(struct lua_state *state);
+int lua_packet_mq_subscribe_topic(struct lua_state *state);
+int lua_packet_mq_publish_message(struct lua_state *state);
/* session message mq相关的函数 */
int lua_session_mq_create_topic(struct lua_state *state);
@@ -45,6 +45,6 @@ void *lpm_ctx_new_func(struct session *sess, void *plugin_env);
void lpm_ctx_free_func(struct session *sess, void *sess_ctx, void *plugin_env);
void lpm_session_message_free_func(struct session *sess, void *msg, void *msg_free_arg);
void lpm_on_session_msg_func(struct session *sess, int topic_id, const void *msg, void *sess_ctx, void *plugin_env);
-void lpm_on_packet_func(struct packet * pkt, unsigned char ip_protocol, void * plugin_env);
-void lpm_packet_message_free_func(struct packet *pkt, void * msg, void * msg_free_arg);
-void lpm_on_packet_msg_func(struct packet *pkt, int topic_id, const void *msg, void * plugin_env); \ No newline at end of file
+void lpm_on_packet_func(struct packet *pkt, unsigned char ip_protocol, void *plugin_env);
+void lpm_packet_message_free_func(struct packet *pkt, void *msg, void *msg_free_arg);
+void lpm_on_packet_msg_func(struct packet *pkt, int topic_id, const void *msg, void *plugin_env); \ No newline at end of file