summaryrefslogtreecommitdiff
path: root/include/lua_plugin_manage.h
blob: d7fc07350f23d5a1858596fb50f85ecbe92c37ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*************************************************************************
    > File Name: lua_plugin_manage.h
    > Author:
    > Created Time: 2024-08
    > Encoding : UTF-8
 ************************************************************************/

/*************************************************************************
 * version
 * [ v0.1 ]
 * 08-01
 * 1. 修改外部暴露接口
 *    lua_plugin_manage_init
 *    lua_plugin_manage_exit
 * 2. 声明数据结构
 *    struct lua_plugin_manage_schema
 * 
 * 08-09
 * 1. 修改参数函数原型, 传入参数修改为已经加载的配置信息
 ************************************************************************/
#pragma once

#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, int specific_count, struct lua_config_specific *specific);
void lua_plugin_manage_exit(struct lua_plugin_manage_schema *lua_plug_mgr);