Obsolete
/
libipc-old
Archived
3
0
Fork 0

Zig bindings: close_all.

master
Philippe Pittoli 2023-02-03 02:08:31 +01:00
parent 0ad272d10a
commit 7a1e66423f
1 changed files with 5 additions and 0 deletions

View File

@ -121,6 +121,11 @@ export fn ipc_close (ctx: *Context, index: usize) callconv(.C) i32 {
return 0;
}
export fn ipc_close_all (ctx: *Context) callconv(.C) i32 {
ctx.close_all () catch return -1;
return 0;
}
/// Add a new file descriptor to listen to.
/// The FD is marked as "external"; it isn't a simple libipc connection.
/// You may want to handle any operation on it by yourself.