Plugin Management support C plugin
This commit is contained in:
34
src/plugin_manager/plugin_manager_config.h
Normal file
34
src/plugin_manager/plugin_manager_config.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#pragma once
|
||||
|
||||
#include "plugin_manager_util.h"
|
||||
#include "sdk/include/session.h"
|
||||
|
||||
struct session_section_config
|
||||
{
|
||||
char session_name[MAX_SESSION_NAME_LENGTH];
|
||||
char *cb_func_name;
|
||||
enum session_event_type event;
|
||||
};
|
||||
|
||||
struct plugin_section_config
|
||||
{
|
||||
char *init_func_name;
|
||||
char *exit_func_name;
|
||||
char *lib_path;
|
||||
};
|
||||
|
||||
struct plugin_manager_config
|
||||
{
|
||||
char *prefix_path; // absolute path to stellar installation
|
||||
char *file_path; // relative path to stellar installation
|
||||
|
||||
int session_section_num;
|
||||
struct session_section_config *session_section; // array
|
||||
struct plugin_section_config plugin_section;
|
||||
};
|
||||
|
||||
struct plugin_manager_config *plugin_mangager_config_create();
|
||||
void plugin_mangager_config_destory(struct plugin_manager_config *config);
|
||||
|
||||
int plugin_mangager_config_parse(struct plugin_manager_config *config, const char *prefix, const char *file);
|
||||
void plugin_mangager_config_dump(struct plugin_manager_config *config);
|
||||
Reference in New Issue
Block a user