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:
luwenpeng
2022-08-03 19:46:43 +08:00
parent 50111e7cd0
commit 5c790085eb
26 changed files with 1348 additions and 382 deletions

View File

@@ -1,15 +1,25 @@
#pragma once
#ifndef _PLUGIN_H
#define _PLUGIN_H
#ifdef __cpluscplus
extern "C"
{
#endif
#include "session.h"
typedef int plugin_init_callback(void);
typedef void plugin_exit_callback(void);
void plugin_remove_from_session_event(struct stellar_event *ev, struct stellar_session *s);
/******************************************************************************
* Public API: between plugin and plugin_manager
* Public API For Plugin
******************************************************************************/
// TODO
// TODO
void pm_session_dettach_me(const struct stellar_session *session);
void pm_session_dettach_others(const struct stellar_session *session);
#ifdef __cpluscplus
}
#endif
#endif