hlswmaster/include/plugin.h

32 lines
641 B
C
Raw Permalink 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];
2006-11-24 21:53:25 +01:00
int (*init)(void);
2006-02-02 16:24:06 +01:00
int (*fini)(void);
int (*scan)(void);
int (*parse)(struct net_pkt *pkt);
};
2006-11-24 21:53:25 +01:00
int plugin_init();
int plugins_scan();
int plugins_parse(struct net_pkt *pkt);
#endif /* _PLUGIN_H */