#ifndef PLOC_GEN_FILTER_H #define PLOC_GEN_FILTER_H #include "stdbool.h" #include "pattern/pattern.h" struct filter { void *state; void *(*create)(); void (*free)(void *); bool (*filter)(void *, struct pattern *); }; #endif