From ace464e5066c9f30a13d77d267d9392ce84b3e73 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Tue, 21 Feb 2023 15:21:52 +0100 Subject: actions: add reference for the fds --- gluten.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'gluten.h') diff --git a/gluten.h b/gluten.h index 760f82b..c25ec97 100644 --- a/gluten.h +++ b/gluten.h @@ -66,6 +66,7 @@ struct act_call { }; struct act_block { + enum value_type type; int32_t error; }; @@ -81,9 +82,18 @@ struct act_return { }; }; +struct fd_type { + enum value_type type; + union { + uint32_t fd; + uint16_t fd_off; + }; + +}; + struct act_inject { - uint32_t newfd; - uint32_t oldfd; + struct fd_type newfd; + struct fd_type oldfd; }; struct action { -- cgit v1.2.3