|
Sturk 1.1.0
Publish-subscribe C implementation.
|
Vtable for message construction. More...
#include <broker.h>
Data Fields | |
| size_t(* | size_cb )(void) |
| Callback for obtaining the size of the message. | |
| void(* | ctor )(void *, va_list) |
| Constructor callback for the message. | |
| void(* | dtor )(void *) |
| Destructor callback for the message. | |
Vtable for message construction.
| void(* StMessageVt::ctor)(void *, va_list) |
Constructor callback for the message.
Should allocate additional memory for the message, if needed (see "dynamic context") and initialize the message - read arguments from the va_list and fill the message passed through the void pointer.
| void(* StMessageVt::dtor)(void *) |
Destructor callback for the message.
Should free all the memory allocated by the StMessageVt::ctor.
| size_t(* StMessageVt::size_cb)(void) | ( | void | ) |
Callback for obtaining the size of the message.
Should return the size of the message in bytes.