Refactor main loop
This commit is contained in:
29
src/plugin/plugin_manager.h
Normal file
29
src/plugin/plugin_manager.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user