This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
stellar-stellar/src/plugin/plugin_manager.h

30 lines
789 B
C
Raw Normal View History

2024-04-11 16:30:21 +08:00
#ifndef _PLUGIN_MANAGER_H
#define _PLUGIN_MANAGER_H
2024-04-21 11:30:41 +08:00
#ifdef __cplusplus
2024-04-11 16:30:21 +08:00
extern "C"
{
#endif
#include "session_priv.h"
2024-04-11 16:30:21 +08:00
#define PLUGIN_MANAGER_LOG_ERROR(format, ...) LOG_ERROR("plugin manager", format, ##__VA_ARGS__)
#define PLUGIN_MANAGER_LOG_DEBUG(format, ...) LOG_DEBUG("plugin manager", format, ##__VA_ARGS__)
// per session context
void *plugin_manager_new_ctx(struct session *sess);
void plugin_manager_free_ctx(void *ctx);
struct plugin_manager;
struct plugin_manager *plugin_manager_new(void);
void plugin_manager_free(struct plugin_manager *mgr);
void plugin_manager_dispatch_session(struct plugin_manager *mgr, struct session *sess, struct packet *pkt);
void plugin_manager_dispatch_packet(struct plugin_manager *mgr, struct packet *pkt);
2024-04-21 11:30:41 +08:00
#ifdef __cplusplus
2024-04-11 16:30:21 +08:00
}
#endif
#endif