38 lines
1.2 KiB
C
38 lines
1.2 KiB
C
/*************************************************************************
|
|
> 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); |