summaryrefslogtreecommitdiffstats
path: root/filter/filter.h
diff options
context:
space:
mode:
Diffstat (limited to 'filter/filter.h')
-rw-r--r--filter/filter.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/filter/filter.h b/filter/filter.h
index aed2647..e0f4723 100644
--- a/filter/filter.h
+++ b/filter/filter.h
@@ -11,19 +11,28 @@
#include "lib/resource.h"
-/* Lexer */
-
-struct f_instruction {
- struct f_instruction *next; /* Structure is 16 bytes, anyway */
+struct f_inst { /* Instruction */
+ struct f_inst *next; /* Structure is 16 bytes, anyway */
int code;
void *arg1, *arg2;
};
+struct f_val {
+ int type;
+ union {
+ int i;
+ } val;
+};
+
void filters_postconfig(void);
-struct f_instruction *f_new_inst(void);
+struct f_inst *f_new_inst(void);
#define F_ACCEPT 1
#define F_REJECT 2
#define F_MODIFY 3
+#define T_VOID 0
+#define T_INT 1
+#define T_PX 2
+
#endif