Other codec definitions
EventCodec.h also provides some additional definitions that the codec author needs to be aware of.
First of these are the codec capability bits. These are returned by the info function to define whether the codec can decode or encode messages.
#define AP_EVENTCODEC_CAP_ENCODER 0x0001
#define AP_EVENTCODEC_CAP_DECODER 0x0002
AP_EventCodecError defines the set of error codes that can be returned by the codec's functions.
The
AP_EventCodecProperty structure is a definition for a configuration property. This corresponds to the properties that can be passed in as initialization or re-configuration parameters from the configuration file of the IAF.
Properties are passed to the event transport within an
AP_EventCodecProperties structure.
The status of a codec is reported in an
AP_EventCodecStatus structure.
You are advised to peruse EventCodec.h for the complete definitions. EventTransport.h and SemanticMapper.h are also relevant as they define the functions that a codec author can invoke within the transport layer and the Semantic Mapper, respectively.