From 36cbebd3c81b75f709ac5e6f6df36e0e37893d3d Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Wed, 22 Feb 2023 17:13:59 +0100 Subject: operations: add op_copy --- gluten.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gluten.h') diff --git a/gluten.h b/gluten.h index 1b6c3d1..57b53ad 100644 --- a/gluten.h +++ b/gluten.h @@ -50,6 +50,7 @@ enum op_type { OP_INJECT, OP_INJECT_A, OP_RETURN, + OP_COPY_ARGS, }; enum value_type { @@ -94,6 +95,16 @@ struct op_inject { struct fd_type oldfd; }; +struct copy_arg { + uint16_t args_off; + bool need_copied; + size_t size; +}; + +struct op_copy_args { + struct copy_arg args[6]; +}; + struct op { enum op_type type; union { @@ -102,6 +113,7 @@ struct op { struct op_continue cont; struct op_return ret; struct op_inject inj; + struct op_copy_args copy; }; }; #endif /* GLUTEN_H */ -- cgit v1.2.3