30 lines
786 B
C
30 lines
786 B
C
|
|
#ifndef _PLUGIN_MANAGER_H
|
||
|
|
#define _PLUGIN_MANAGER_H
|
||
|
|
|
||
|
|
#ifdef __cpluscplus
|
||
|
|
extern "C"
|
||
|
|
{
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#include "session.h"
|
||
|
|
|
||
|
|
#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);
|
||
|
|
|
||
|
|
#ifdef __cpluscplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|