![]() |
dfx 0.1.0
Linux-based dynamic dataflow executor
|
Bridge between the C++ FdWatch::Poller and the C-ABI dfx_poller_api_t. More...
#include <dfx-plugins/api/PollerApi.hpp>
Static Public Member Functions | |
| static dfx_poller_api_t | buildPluginPoller (FdWatch::Poller &poller) |
| Creates a dfx_poller_api_t vtable for a specific Poller instance. | |
| static constexpr FdWatch::EventInterests | pluginEventToDfx (dfx_event_interest_t event) noexcept |
| Converts C-ABI event interests to internal FdWatch interests. | |
| static constexpr dfx_event_trigger_t | dfxEventToPlugin (FdWatch::EventTriggers events) noexcept |
| Converts internal FdWatch triggers to C-ABI event triggers. | |
Bridge between the C++ FdWatch::Poller and the C-ABI dfx_poller_api_t.
This class provides static utilities to convert event interests and triggers between internal C++ enums and C-ABI bitfields. It also builds the function pointer vtable required for plugins to interact with the host's event loop.
|
static |
Creates a dfx_poller_api_t vtable for a specific Poller instance.
The resulting structure contains lambdas that wrap C++ Poller methods.
poller instance exists.
|
staticconstexprnoexcept |
Converts internal FdWatch triggers to C-ABI event triggers.
|
staticconstexprnoexcept |
Converts C-ABI event interests to internal FdWatch interests.