| Prelude API Reference Manual | |||
|---|---|---|---|
| <<< Previous Page | Home | Up | Next Page >>> |
typedef subscribtion_t; typedef plugin_detect_t; #define plugin_subscribtion (p) #define plugin_run_func (p) #define plugin_set_subscribtion (p, s) #define plugin_set_running_func (p, func) int plugin_init (unsigned int id); |
typedef struct {
proto_enum_t type; /* protocol the plugin want */
const char *filter; /* PF rule */
} subscribtion_t; |
typedef struct {
PLUGIN_GENERIC;
int (*opt)(int argc, char **argv);
void (*run)(Packet_t *packet, int depth);
subscribtion_t *subscribtion;
/*
* entry filled by Prelude.
*/
unsigned int id;
} plugin_detect_t; |