hlswmaster/plugin.h

31 lines
625 B
C
Raw Normal View History

2006-02-02 16:24:06 +01:00
#ifndef _PLUGIN_H
#define _PLUGIN_H
#include "netpkt.h"
#include "configfile.h"
2006-02-02 16:24:06 +01:00
#include "list.h"
// paket nicht akzeptiert, free() muss noch aufgerufen werden
#define PARSE_REJECT 0
// paket akzeptiert, free() muss noch aufgerufen werden
#define PARSE_ACCEPT 1
// paket akzeptiert, free() wurde schon, oder darf noch aufgerufen werden
#define PARSE_ACCEPT_FREED 2
2006-02-02 16:24:06 +01:00
struct hlswmaster_plugin {
struct list_head list;
char name[32];
void *dlref;
int (*init)(struct conf_section *config);
2006-02-02 16:24:06 +01:00
int (*fini)(void);
int (*scan)(void);
int (*parse)(struct net_pkt *pkt);
int (*gc)(int timeout);
};
#endif /* _PLUGIN_H */