Archived
3
0

libipc now allows buffered readings from switched fd.

This commit is contained in:
Karchnu 2020-08-03 00:39:13 +02:00
parent ee2852357e
commit 89125d8338

View File

@ -12,6 +12,7 @@ lib LibIPC
struct Connection struct Connection
type : ConnectionType # type : ConnectionType #
more_to_read : Int16* #
spath : LibC::Char* # [4096] # [PATH_MAX] spath : LibC::Char* # [4096] # [PATH_MAX]
end end
@ -24,9 +25,9 @@ lib LibIPC
struct Switching struct Switching
origin : LibC::Int origin : LibC::Int
dest : LibC::Int dest : LibC::Int
orig_cb_in : (Int32, Pointer(Message)) -> ConnectionType orig_cb_in : (Int32, Pointer(Message), Int16*) -> ConnectionType
orig_cb_out : (Int32, Pointer(Message)) -> ConnectionType orig_cb_out : (Int32, Pointer(Message)) -> ConnectionType
dest_cb_in : (Int32, Pointer(Message)) -> ConnectionType dest_cb_in : (Int32, Pointer(Message), Int16*) -> ConnectionType
dest_cb_out : (Int32, Pointer(Message)) -> ConnectionType dest_cb_out : (Int32, Pointer(Message)) -> ConnectionType
end end
@ -146,7 +147,7 @@ lib LibIPC
# , enum ipccb cb_in (fd, *ipc_message) # , enum ipccb cb_in (fd, *ipc_message)
# , enum ipccb cb_out (fd, *ipc_message) # , enum ipccb cb_out (fd, *ipc_message)
fun ipc_switching_callbacks(Ctx*, LibC::Int, fun ipc_switching_callbacks(Ctx*, LibC::Int,
(LibC::Int, LibIPC::Message* -> LibIPC::IPCCB), (LibC::Int, LibIPC::Message*, Int16* -> LibIPC::IPCCB),
(LibC::Int, LibIPC::Message* -> LibIPC::IPCCB)) (LibC::Int, LibIPC::Message* -> LibIPC::IPCCB))
fun ipc_ctx_switching_add (ctx : Ctx*, fd1 : LibC::Int, fd2 : LibC::Int) # Void fun ipc_ctx_switching_add (ctx : Ctx*, fd1 : LibC::Int, fd2 : LibC::Int) # Void