Airframe Application Utilities
libairframe 0.7.2 API documentation

Main Page | Data Structures | File List | Data Fields | Globals

_MIOAppDriver Struct Reference

An MIO application driver. More...

#include <mio.h>


Data Fields

MIOAppSourceFn app_open_source
 Application source open function.
MIOAppFn app_open_sink
 Application sink open function.
MIOAppFn app_process
 Application record processing function.
MIOAppSourceFn app_close_source
 Application source close function.
MIOAppFn app_close_sink
 Application sink close function.

Detailed Description

An MIO application driver.

Applications should pass one of these to mio_dispatch(); the functions are then called in the appropriate order by the mio_dispatch() run loop.


Field Documentation

MIOAppFn _MIOAppDriver::app_close_sink
 

Application sink close function.

Called after mio_dispatch() has determined that the sink should be closed, but before closing it. Use this to flush any pending application data to the sink, and to clean up after your app_open_sink function.

MIOAppSourceFn _MIOAppDriver::app_close_source
 

Application source close function.

Called after mio_dispatch() has determined that the source should be closed, but before closing it. Use this to clean up after your app_open_source function.

MIOAppFn _MIOAppDriver::app_open_sink
 

Application sink open function.

Called after a new iteration of a sink has been opened. This function should set up any internal state required to write records, write file or message headers, etc.

MIOAppSourceFn _MIOAppDriver::app_open_source
 

Application source open function.

Called after a new iteration of a source has been opened. This function should set up any internal state required to read records, read file or message headers, etc.

MIOAppFn _MIOAppDriver::app_process
 

Application record processing function.

Continually called by mio_dispatch(), this function should process a single input record, then return.


The documentation for this struct was generated from the following file: