]> git.corax.cc Git - toolbox/commit
include/ipc: Add ipc_endpoint_foreach_message() function
authorMatthias Kruk <m@m10k.eu>
Sat, 24 Jul 2021 04:46:20 +0000 (13:46 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 24 Jul 2021 04:46:20 +0000 (13:46 +0900)
commit9f7db15294ea2dc501b12433abe5081f5478804a
tree2d6f31083f5269b15d64e354ecb58fa38af7bb5c
parentaabe344aa60cc1663cb45a0c2d84fb7f30466cfa
include/ipc: Add ipc_endpoint_foreach_message() function

The IPC module currently does not provide an API that can be used
to enquire the state of the queue of an endpoint. This makes it
unnecessarily complicated to implement monitoring of IPC endpoints.
This commit adds the ipc_endpoint_foreach_message() function that
may be used to enquire about messages that are stored in the internal
queue of an IPC endpoint. The semantics of this function are similar
to those of queue_foreach(), with the exception that the endpoint
name is passed in the first parameter of the callback and the message
in the second parameter. The remaining parameters are passed on from
ipc_endpoint_foreach_message().
include/ipc.sh