]> git.corax.cc Git - toolbox/commit
include/ipc: Allow passing multiple topics to ipc_endpoint_subscribe()
authorMatthias Kruk <m@m10k.eu>
Sat, 15 Apr 2023 07:05:21 +0000 (16:05 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 15 Apr 2023 07:05:21 +0000 (16:05 +0900)
commit468661251c083e296591b9f16047df36ea84f060
tree8a55ce79ad074fd0d5518d29e7a6210dc063bb37
parentebc02e15a79062b951d73b3ca5d3f52c1d25f2ac
include/ipc: Allow passing multiple topics to ipc_endpoint_subscribe()

The ipc_endpoint_subscribe() function can only be used to subscribe to
one topic at a time, making error checking in scripts that subscribe to
more than one topic needlessly complicated.

This commit modifies the `ipc_endpoint_subscribe()' function so that
the caller may pass more than one topic. If any of the topics could not
be subscribed, the function will leave the endpoint in the state it had
before the invocation (that is, undo subscriptions that were made by
the same call).
docs/ipc.md
include/ipc.sh