commit 51f2cd3e2644534f8a9dc5b135ebed123dd4fad4
parent 73ff7e51e34ad38536686140a275f8a783e96cb1
Author: Alexey Yerin <yyp@disroot.org>
Date: Thu, 21 Oct 2021 10:14:13 +0300
iobus: export setuser and getuser
Signed-off-by: Alexey Yerin <yyp@disroot.org>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/iobus/io_uring/handle.ha b/iobus/io_uring/handle.ha
@@ -12,12 +12,12 @@ export fn callback(
};
// Sets an arbitrary user data field for this handle.
-fn setuser(handle: *handle, user: *void) void = {
+export fn setuser(handle: *handle, user: *void) void = {
handle.user = user;
};
// Returns the value, if any, of the user data field set by [[setuser]].
-fn getuser(handle: *handle) nullable *void = {
+export fn getuser(handle: *handle) nullable *void = {
return handle.user;
};