|
Dawn Framework 1.0
Universal data acquisition framework for embedded systems
|
I/O notification handler with poll-based event delivery. More...
#include <notifier.hxx>
Public Types | |
| typedef int(* | notifier_cb_t) (void *priv, io_ddata_t *data) |
| Notifier callback function type. | |
Public Member Functions | |
| int | notifyData (CIOCommon *io, io_ddata_t *data) |
| Emit an immediate notification for already-available data. | |
| int | regNotifier (SIONotifier n) |
| Register I/O notification callback. | |
I/O notification handler with poll-based event delivery.
Implements asynchronous I/O notification using POSIX poll() system call.
Definition at line 30 of file notifier.hxx.
|
inherited |
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.
|
virtual |
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 from dawn::IIONotifier.
Definition at line 306 of file notifier.cxx.
|
virtual |
Register I/O notification callback.
Implements IIONotifier interface.
| n | SIONotifier structure containing callback configuration. |
Implements dawn::IIONotifier.
Definition at line 232 of file notifier.cxx.
References dawn::CIOCommon::ddata_alloc(), dawn::CObject::getIdV(), dawn::IIONotifier::SIONotifier::io, and dawn::CIOCommon::isNotify().