libipc now allows buffered readings from switched fd.
This commit is contained in:
parent
ee2852357e
commit
89125d8338
@ -11,8 +11,9 @@ lib LibIPC
|
|||||||
end
|
end
|
||||||
|
|
||||||
struct Connection
|
struct Connection
|
||||||
type : ConnectionType #
|
type : ConnectionType #
|
||||||
spath : LibC::Char* # [4096] # [PATH_MAX]
|
more_to_read : Int16* #
|
||||||
|
spath : LibC::Char* # [4096] # [PATH_MAX]
|
||||||
end
|
end
|
||||||
|
|
||||||
struct Pollfd
|
struct Pollfd
|
||||||
@ -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
|
||||||
|
Reference in New Issue
Block a user