68#ifdef VLINK_SUPPORT_FDBUS
88 std::string transport{
"svc"};
97 explicit FdbusConf(
const std::string& _address,
const std::string& _event =
"",
98 const std::string& _transport =
"svc");
109 [[nodiscard]]
bool operator==(
const FdbusConf& conf)
const noexcept;
117 [[nodiscard]]
bool operator!=(
const FdbusConf& conf)
const noexcept;
124 [[nodiscard]]
TransportType get_transport_type()
const override;
137 [[nodiscard]]
static bool has_name_server();
139#ifndef VLINK_ENABLE_C_INTERFACE
150inline FdbusConf::FdbusConf(
const std::string& _address,
const std::string& _event,
const std::string& _transport)
151 : address(_address), event(_event), transport(_transport) {}
153inline bool FdbusConf::operator==(
const FdbusConf& conf)
const noexcept {
154 return address == conf.address &&
event == conf.event;
157inline bool FdbusConf::operator!=(
const FdbusConf& conf)
const noexcept {
return !(*
this == conf); }
159inline TransportType FdbusConf::get_transport_type()
const {
return TransportType::kFdbus; }
Abstract transport configuration base class and associated helper macros.
#define VLINK_CONF_IMPL(classname)
Standard boilerplate for concrete Conf subclass declarations.
定义 conf.h:227
#define VLINK_DECLARE_GLOBAL_PROPERTY()
Declares per-transport global state: thread count and property storage.
定义 conf.h:292
#define VLINK_ALLOW_IMPL_TYPE(type)
Declares a static constexpr bitmask of supported ImplType values.
定义 conf.h:268
#define VLINK_EXPORT
定义 macros.h:85
TransportType
Enumeration of all supported transport backends.
定义 types.h:107
Abstract base class for VLink transport configuration objects.
定义 conf.h:83