diff options
author | Alice Frosi <afrosi@redhat.com> | 2023-02-22 17:13:59 +0100 |
---|---|---|
committer | Alice Frosi <afrosi@redhat.com> | 2023-02-23 16:15:33 +0100 |
commit | 36cbebd3c81b75f709ac5e6f6df36e0e37893d3d (patch) | |
tree | 0b74a4e81c2f1d20566fdd1d53e4ff49cdd39a94 /gluten.h | |
parent | 5523c957d3a261bb29ec6da382a15538e42ae737 (diff) | |
download | seitan-36cbebd3c81b75f709ac5e6f6df36e0e37893d3d.tar seitan-36cbebd3c81b75f709ac5e6f6df36e0e37893d3d.tar.gz seitan-36cbebd3c81b75f709ac5e6f6df36e0e37893d3d.tar.bz2 seitan-36cbebd3c81b75f709ac5e6f6df36e0e37893d3d.tar.lz seitan-36cbebd3c81b75f709ac5e6f6df36e0e37893d3d.tar.xz seitan-36cbebd3c81b75f709ac5e6f6df36e0e37893d3d.tar.zst seitan-36cbebd3c81b75f709ac5e6f6df36e0e37893d3d.zip |
operations: add op_copy
Diffstat (limited to 'gluten.h')
-rw-r--r-- | gluten.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 */ |