From e5a1983e4384a44e45486fb9a48bdba375a529b6 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 6 Jun 2023 11:56:21 +0200 Subject: cooker: Draft quality: mknod/mknodat, sets of values with "in" While at it: - directly assign 'fd' in eater from install_filter() - turn op_cmp into a description-style thing Signed-off-by: Stefano Brivio --- cooker/cooker.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cooker/cooker.h') diff --git a/cooker/cooker.h b/cooker/cooker.h index 7a14221..b26ea2d 100644 --- a/cooker/cooker.h +++ b/cooker/cooker.h @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -82,6 +83,9 @@ enum type { IPV4, IPV6, + GNU_DEV_MAJOR, + GNU_DEV_MINOR, + FDPATH, TYPE_END, @@ -108,7 +112,9 @@ enum flags { #define TYPE_IS_COMPOUND(t) \ ((t) == STRUCT || (t) == SELECT) #define TYPE_IS_NUM(t) \ - ((t) == INT || (t) == U32 || (t) == U64 || (t) == LONG || (t) == USHORT) + ((t) == USHORT || (t) == INT || (t) == U32 || \ + (t) == U64 || (t) == LONG || \ + (t) == GNU_DEV_MAJOR || (t) == GNU_DEV_MINOR) /** * struct num - A numeric value and its label -- cgit v1.2.3