aboutgitcodelistschat:MatrixIRC
path: root/gluten.h
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-02-21 15:21:52 +0100
committerAlice Frosi <afrosi@redhat.com>2023-02-21 16:33:04 +0100
commitace464e5066c9f30a13d77d267d9392ce84b3e73 (patch)
tree18c478d840e6fcec3e51249f170e34d3c035e6ed /gluten.h
parent4cad95ec182ab9f3d28f37cfab9fb28ccb596cd7 (diff)
downloadseitan-ace464e5066c9f30a13d77d267d9392ce84b3e73.tar
seitan-ace464e5066c9f30a13d77d267d9392ce84b3e73.tar.gz
seitan-ace464e5066c9f30a13d77d267d9392ce84b3e73.tar.bz2
seitan-ace464e5066c9f30a13d77d267d9392ce84b3e73.tar.lz
seitan-ace464e5066c9f30a13d77d267d9392ce84b3e73.tar.xz
seitan-ace464e5066c9f30a13d77d267d9392ce84b3e73.tar.zst
seitan-ace464e5066c9f30a13d77d267d9392ce84b3e73.zip
actions: add reference for the fds
Diffstat (limited to 'gluten.h')
-rw-r--r--gluten.h14
1 files changed, 12 insertions, 2 deletions
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 {