Files
mpd/src/lib/avahi/Service.hxx
2023-03-06 14:59:48 +01:00

27 lines
565 B
C++

// SPDX-License-Identifier: BSD-2-Clause
// Copyright CM4all GmbH
// author: Max Kellermann <mk@cm4all.com>
#pragma once
#include <avahi-common/address.h>
#include <cstdint>
#include <string>
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