|
Dawn Framework 1.0
Universal data acquisition framework for embedded systems
|
Abstract interface for registering asynchronous I/O notification. More...
#include <inotifier.hxx>
Classes | |
| struct | SIONotifier |
| Notifier registration structure. More... | |
Public Types | |
| typedef int(* | notifier_cb_t) (void *priv, io_ddata_t *data) |
| Notifier callback function type. | |
Public Member Functions | |
| virtual int | notifyData (CIOCommon *io, io_ddata_t *data) |
| Emit an immediate notification for already-available data. | |
| virtual int | regNotifier (SIONotifier n)=0 |
| Register I/O notification callback. | |
Abstract interface for registering asynchronous I/O notification.
Enables event-driven architecture where I/O data arrival triggers callback execution from a dedicated worker thread.
Definition at line 24 of file inotifier.hxx.
| typedef int(* dawn::IIONotifier::notifier_cb_t) (void *priv, io_ddata_t *data) |
Notifier callback function type.
Callback signature for I/O notification events.
| priv | Private context pointer registered with callback. |
| data | Dynamically allocated I/O data (io_ddata_t*). |
Definition at line 37 of file inotifier.hxx.
|
inlinevirtual |
Emit an immediate notification for already-available data.
Poll-based notifiers still use regNotifier() for fd-driven updates; this hook covers synchronous writes where the payload is already available.
| io | I/O object that produced the data. |
| data | Data payload to pass to callbacks. |
Reimplemented in dawn::CIONotifier.
Definition at line 103 of file inotifier.hxx.
|
pure virtual |
Register I/O notification callback.
Implements IIONotifier interface.
| n | SIONotifier structure containing callback configuration. |
Implemented in dawn::CIONotifier, dawn::CStreamNotifier, and dawn::CIOVirt.