Plugin management support pm_session_dettach_me and pm_session_dettach_others
Add test cases for pm_session_dettach_me and pm_session_dettach_others
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
#pragma once
|
||||
#ifndef _PLUGIN_MANAGER_CONFIG_H
|
||||
#define _PLUGIN_MANAGER_CONFIG_H
|
||||
|
||||
#ifdef __cpluscplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include "plugin_manager_util.h"
|
||||
#include "sdk/include/session.h"
|
||||
@@ -14,13 +20,13 @@ struct plugin_section_config
|
||||
{
|
||||
char *init_func_name;
|
||||
char *exit_func_name;
|
||||
char *error_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
|
||||
char *file_path;
|
||||
|
||||
int session_section_num;
|
||||
struct session_section_config *session_section; // array
|
||||
@@ -30,5 +36,11 @@ struct plugin_manager_config
|
||||
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);
|
||||
int plugin_mangager_config_parse(struct plugin_manager_config *config, const char *file);
|
||||
void plugin_mangager_config_dump(struct plugin_manager_config *config);
|
||||
|
||||
#ifdef __cpluscplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user