// SPDX-License-Identifier: BSD-2-Clause // Copyright CM4all GmbH // author: Max Kellermann #pragma once #include #include #include namespace Avahi { struct Service { AvahiIfIndex interface = AVAHI_IF_UNSPEC; AvahiProtocol protocol = AVAHI_PROTO_UNSPEC; std::string type; uint16_t port; Service(AvahiIfIndex _interface, AvahiProtocol _protocol, const char *_type, uint16_t _port) noexcept :interface(_interface), protocol(_protocol), type(_type), port(_port) {} }; } // namespace Avahi