【新增】增加message处理相关lua接口函数
This commit is contained in:
52
src/lua_binding_functions.h
Normal file
52
src/lua_binding_functions.h
Normal file
@@ -0,0 +1,52 @@
|
||||
/*************************************************************************
|
||||
> File Name: lua_binding_functions.h
|
||||
> Author:
|
||||
> Created Time: 2024-08
|
||||
> Encoding : UTF-8
|
||||
************************************************************************/
|
||||
|
||||
/*************************************************************************
|
||||
* 声明并定义所有需要在lua状态机中绑定的函数
|
||||
* version
|
||||
* [ v0.1 ]
|
||||
* 08-14
|
||||
* 1. 新增函数声明
|
||||
* 新增插件注册函数
|
||||
* int lua_plugin_manage_regist
|
||||
* 新增会话相关函数
|
||||
* int lua_session_get_id
|
||||
* int lua_session_set_id
|
||||
* int lua_session_get_type
|
||||
* int lua_session_set_type
|
||||
* 新增message相关函数
|
||||
* int lua_mq_create_topic
|
||||
* int lua_mq_get_topic_id
|
||||
* int lua_mq_update_topic
|
||||
* int lua_mq_destory_topic
|
||||
* int lua_mq_subscribe_topic
|
||||
* int lua_mq_topic_is_active
|
||||
* int lua_mq_publish_message
|
||||
* int lua_mq_ignore_message
|
||||
* int lua_mq_unignore_message
|
||||
************************************************************************/
|
||||
#include "lua_plugin_manage_internal.h"
|
||||
|
||||
/* 需要注册至lua中供lua调用的所有函数原型 */
|
||||
int lua_plugin_manage_regist(lua_State *state);
|
||||
|
||||
/* 与struct session结构相关的函数 */
|
||||
int lua_session_get_id(lua_State *state);
|
||||
int lua_session_set_id(lua_State *state);
|
||||
int lua_session_get_type(lua_State *state);
|
||||
int lua_session_set_type(lua_State *state);
|
||||
|
||||
/* 与stellar message mq相关的函数 */
|
||||
int lua_mq_create_topic(lua_State * state);
|
||||
int lua_mq_get_topic_id(lua_State * state);
|
||||
int lua_mq_update_topic(lua_State * state);
|
||||
int lua_mq_destory_topic(lua_State * state);
|
||||
int lua_mq_subscribe_topic(lua_State * state);
|
||||
int lua_mq_topic_is_active(lua_State * state);
|
||||
int lua_mq_publish_message(lua_State * state);
|
||||
int lua_mq_ignore_message(lua_State * state);
|
||||
int lua_mq_unignore_message(lua_State * state);
|
||||
Reference in New Issue
Block a user