]> git.corax.cc Git - toolbox/commit
include/uipc: Add "topic" field to pubsub UIPC messages
authorMatthias Kruk <m@m10k.eu>
Sat, 17 Sep 2022 05:40:48 +0000 (14:40 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 17 Sep 2022 05:40:48 +0000 (14:40 +0900)
commit2b43f56846ed19dada218d605c6d78e6ff558948
tree3bb769a7a3f06c60858e038ff28baf091c8bbdf0
parentc70a0a93374eae11f20b90aec539b0c190eb6faa
include/uipc: Add "topic" field to pubsub UIPC messages

Messages that were sent with uipc_endpoint_publish() don't contain
information about the topic that they were published on, making it
impossible for the receiver to determine what topic a message was
published on if they are subscribed to more than one topic.

This commit adds a new field "topic" to UIPC messages and modifies
uipc_endpoint_publish() so that it sets the field appropriately. This
further adds the function uipc_msg_get_topic() that may be used to
determine the topic a UIPC message was published on.
include/uipc.sh