Airframe Application Utilities
libairframe 2.12.0 API documentation

Data Fields
_MIOAppDriver Struct Reference

An MIO application driver. More...

#include <mio.h>

Data Fields

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

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

◆ app_close_sink

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.

◆ app_close_source

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.

◆ app_open_sink

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.

◆ app_open_source

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.

◆ app_process

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: