27 lines
		
	
	
		
			565 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			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
 |