summaryrefslogtreecommitdiff
path: root/src/lua_binding_function.h
diff options
context:
space:
mode:
authorniubinghui <[email protected]>2024-10-15 19:15:05 +0800
committerniubinghui <[email protected]>2024-10-15 19:15:05 +0800
commit7c8146f00f0c57340d8f5aa38619f8292cf44ba2 (patch)
tree53a81b53c45ce5e9747583134c4469cc673fa39d /src/lua_binding_function.h
parentbe165549d1dfe25a0c3badadf449aa48e4a349e6 (diff)
【修改】重新组织部分数据结构,所有逻辑均改为面向数据结构的编程思路
Diffstat (limited to 'src/lua_binding_function.h')
-rw-r--r--src/lua_binding_function.h51
1 files changed, 29 insertions, 22 deletions
diff --git a/src/lua_binding_function.h b/src/lua_binding_function.h
index ffd039e..7d01786 100644
--- a/src/lua_binding_function.h
+++ b/src/lua_binding_function.h
@@ -1,32 +1,39 @@
-#ifndef LUA_MODULE_MANAGE_BINDING_FUNCTION_H
-#define LUA_MODULE_MANAGE_BINDING_FUNCTION_H
+#pragma once
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
#include "lua_module_manage_internal.h"
-int lua_mq_schema_get_topic_id(struct lua_state *state);
-int lua_mq_schema_create_topic(struct lua_state *state);
-int lua_mq_schema_update_topic(struct lua_state *state);
-int lua_mq_shcema_destory_topic(struct lua_state *state);
-int lua_mq_schema_subscribe(struct lua_state *state);
-int lua_mq_runtime_publish_message(struct lua_state *state);
+ int lua_mq_schema_get_topic_id(struct lua_state *state);
+ int lua_mq_schema_create_topic(struct lua_state *state);
+ int lua_mq_schema_update_topic(struct lua_state *state);
+ int lua_mq_shcema_destory_topic(struct lua_state *state);
+ int lua_mq_schema_subscribe(struct lua_state *state);
+ int lua_mq_runtime_publish_message(struct lua_state *state);
-int lua_module_manager_get_thread_id(struct lua_state *state);
-int lua_module_manager_get_max_thread_num(struct lua_state *state);
-int lua_module_manager_get_mq_runtime(struct lua_state *state);
-int lua_module_manager_get_mq_schema(struct lua_state *state);
-int lua_module_manager_get_logger(struct lua_state *state);
+ int lua_stellar_get_stellar_module_manager(struct lua_state *state);
+ int lua_stellar_get_thread_id(struct lua_state *state);
+ int lua_stellar_get_max_thread_num(struct lua_state *state);
+ int lua_stellar_get_mq_runtime(struct lua_state *state);
+ int lua_stellar_get_mq_schema(struct lua_state *state);
+ int lua_stellar_get_logger(struct lua_state *state);
-int lua_packet_get_direction(struct lua_state *state);
-int lua_packet_get_payload(struct lua_state *state);
-int lua_packet_get_payload_len(struct lua_state *state);
+ int lua_packet_get_direction(struct lua_state *state);
+ int lua_packet_get_payload(struct lua_state *state);
+ int lua_packet_get_payload_len(struct lua_state *state);
-int lua_packet_manager_subscribe(struct lua_state *state);
+ int lua_packet_manager_subscribe(struct lua_state *state);
-int lua_session_get0_current_packet(struct lua_state *state);
+ int lua_session_get0_current_packet(struct lua_state *state);
-int lua_session_manager_subscribe_tcp(struct lua_state *state);
-int lua_session_manager_subscribe_udp(struct lua_state *state);
-int lua_session_manager_subscribe_control_packet(struct lua_state *state);
-int lua_session_manager_subscribe_tcp_stream(struct lua_state *state);
+ int lua_session_manager_subscribe_tcp(struct lua_state *state);
+ int lua_session_manager_subscribe_udp(struct lua_state *state);
+ int lua_session_manager_subscribe_control_packet(struct lua_state *state);
+ int lua_session_manager_subscribe_tcp_stream(struct lua_state *state);
+#ifdef __cplusplus
+}
#endif \ No newline at end of file