aboutgitcodelistschat:MatrixIRC
path: root/gluten.h
diff options
context:
space:
mode:
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 {