EII Message Bus C Reference
Public Attributes | List of all members
protocol_exports_t Struct Reference

#include <protocol.h>

Public Attributes

protocol_t *(* initialize )(const char *, config_t *)
 

Detailed Description

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:

protocol_exports_t PROTO_EXPORTS = { .initialize=proto_example_init }

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.


The documentation for this struct was generated from the following file:
protocol_exports_t
Definition: protocol.h:88