dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
PollerApi.hpp
1// SPDX-FileCopyrightText: 2026 Vincent Leroy
2// SPDX-License-Identifier: MIT
3//
4// This file is part of dfx.
5//
6// Licensed under the MIT License. See the LICENSE file in the project root
7// for full license information.
8
9#pragma once
10
11// Project includes
12#include <dfx-fdwatch/Poller.hpp>
14
15namespace dfx::Plugins
16{
25{
26public:
33
34public:
36 static constexpr FdWatch::EventInterests pluginEventToDfx(dfx_event_interest_t event) noexcept;
37
39 static constexpr dfx_event_trigger_t dfxEventToPlugin(FdWatch::EventTriggers events) noexcept;
40};
41} // !namespace dfx::Plugins
C-ABI for the dfx framework plugin system.
uint32_t dfx_event_trigger_t
C-compatible event triggers matching dfx::FdWatch::EventTriggers.
Definition PluginInterface.h:127
uint32_t dfx_event_interest_t
C-compatible event triggers matching dfx::FdWatch::EventInterests.
Definition PluginInterface.h:106
Abstract interface for FD-based event polling.
Definition Poller.hpp:37
Bridge between the C++ FdWatch::Poller and the C-ABI dfx_poller_api_t.
Definition PollerApi.hpp:25
static dfx_poller_api_t buildPluginPoller(FdWatch::Poller &poller)
Creates a dfx_poller_api_t vtable for a specific Poller instance.
static constexpr dfx_event_trigger_t dfxEventToPlugin(FdWatch::EventTriggers events) noexcept
Converts internal FdWatch triggers to C-ABI event triggers.
static constexpr FdWatch::EventInterests pluginEventToDfx(dfx_event_interest_t event) noexcept
Converts C-ABI event interests to internal FdWatch interests.
Definition MessageApi.hpp:16
Interface to the host's event loop (Poller).
Definition PluginInterface.h:212