EII Message Bus C Reference
|
#include <protocol.h>
Public Attributes | |
protocol_t *(* | initialize )(const char *, config_t *) |
Structure for shared object protocol exports.
This structure must be filled out as a symbol in the shared library for a protocol that is dynamically loaded by the message bus.
The message bus will look for the symbol PROTO_EXPORTS
which is a globally defined instance of this structure. This will look like the following:
Where the proto_example_init()
function referenced above follows the prototype of the initialize()
function pointer in this structure.
This structure ultimately allows the message bus to safely load the symbol without worrying about various errors that can happen with directly loading a function symbol and going agains the ISO C standards around this.