Event information
When a callback function is invoked for a particular event, the DataBlade® API passes an event-type structure as the third parameter of this function. This event-type structure contains information about the event that triggered the callback.
The DataBlade®
API stores
event information in one of the following structures based on the
event type:
- Exceptions and errors are stored in error descriptors.
- State transitions are stored in transition descriptors.
The following table shows the event types and the corresponding
event-type structures that describe them.
Event-type structure | Event type |
---|---|
Error descriptor (MI_ERROR_DESC) | MI_Exception |
Transition descriptor (MI_TRANSITION_DESC) | MI_EVENT_SAVEPOINT |
The milib.h header file defines the MI_ERROR_DESC and MI_TRANSITION_DESC structures.