summaryrefslogtreecommitdiff
path: root/include/lua_plugin_manage.h
blob: 12bb1b8b6b8c5a52b3ffa45766a9e57bbca6cedc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "stellar/stellar.h"
#include <stddef.h>

struct lua_config_spec
{
    char *spec_file_path;        /* 插件需要使用的文件名 */
    char *spec_load_func_name;   /* 加载插件需要调用的函数名称 */
    char *spec_unload_func_name; /* 卸载插件需要调用的函数名称 */
};

struct lua_plugin_manage;

struct lua_plugin_manage *lua_plugin_manage_init(struct stellar *st, struct lua_config_spec specifics[], size_t specific_num);
void lua_plugin_manage_exit(struct lua_plugin_manage *lua_plug_mgr);

// void debug_lua_plugin_manage_schema(struct lua_plugin_manage *schema);