Revision 1f7ffcff src/urt_publisher.c
src/urt_publisher.c | ||
---|---|---|
55 | 55 |
* Once a message has been contributed, it cannot be removed later. |
56 | 56 |
* May be NULL (no messages to contribute). |
57 | 57 |
*/ |
58 |
void urtPublisherInit(urt_publisher_t* publisher, urt_topic_t* topic, urt_message_t* message) {return;} |
|
58 |
void urtPublisherInit(urt_publisher_t* publisher, urt_topic_t* topic, urt_message_t* message) |
|
59 |
{ |
|
60 |
urt_publisher_t.topic = topic; |
|
61 |
#if (URT_CFG_PUBSUB_PROFILING) |
|
62 |
urt_publisher_t.publishAttempts = 0; |
|
63 |
urt_publisher_t.publishFails = 0; |
|
64 |
endif /* URT_CFG_PUBSUB_PROFILING */ |
|
65 |
//add later: messages to contribute,... |
|
66 |
return; |
|
67 |
} |
|
59 | 68 |
|
60 | 69 |
|
61 | 70 |
/** |
Also available in: Unified diff