45 if (topic == NULL || comment == NULL)
76 if (topic == NULL || article == NULL)
84 for (
const QueueHandle_t *entry = start; entry < end; entry++) {
89 xQueueSend(*entry, article, 0);
bool Topic_publish(PrivateTopic *topic, uint8_t *article)
Publish an "article" to all discovered subscribers of a topic.
const SubInbox_t * subscriptions
Subscription inbox array pointer.
size_t numSubscriptions
Number of subscriptions to the topic.
Internal representation of a Topic instance.
PubInbox_t commentInbox
Queue handle used to send messages back to topic authors.
bool Topic_comment(Topic *topic, uint8_t *comment)
Send a "comment" back to the originator of a topic.
Public representation of a Topic.