From d4757b140364cd277f7f7f373475eb427003cb42 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 9 Jun 2023 18:52:16 +0200 Subject: cooker: Pass arguments to filter Signed-off-by: Stefano Brivio --- cooker/cooker.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cooker/cooker.h') diff --git a/cooker/cooker.h b/cooker/cooker.h index 24d8f7f..cd804d3 100644 --- a/cooker/cooker.h +++ b/cooker/cooker.h @@ -59,6 +59,8 @@ union value { const char *v_str; }; +#define NO_VALUE ((union value){ .v_num = 0 }) + /** * enum type - Types of values for arguments and fields within arguments */ @@ -116,6 +118,10 @@ enum flags { ((t) == USHORT || (t) == INT || (t) == U32 || \ (t) == U64 || (t) == LONG || \ (t) == GNU_DEV_MAJOR || (t) == GNU_DEV_MINOR) +#define TYPE_IS_64BIT(t) \ + ((t) == U64 || (t) == LONG || \ + (t) == GNU_DEV_MAJOR || (t) == GNU_DEV_MINOR) + /** * struct num - A numeric value and its label -- cgit v1.2.3