snapcast/client/browseZeroConf/browsemDNS.h
2016-10-19 09:21:58 +02:00

29 lines
481 B
C++
Executable file

#ifndef BROWSEMDNS_H
#define BROWSEMDNS_H
#include <string>
struct mDNSResult
{
int proto_;
std::string ip_;
std::string host_;
uint16_t port_;
bool valid_;
};
class BrowsemDNS
{
public:
virtual bool browse(const std::string& serviceName, mDNSResult& result, int timeout) = 0;
};
#if defined(HAS_AVAHI)
#include "browseAvahi.h"
typedef BrowseAvahi BrowseZeroConf;
#elif defined(HAS_BONJOUR)
#include "browseBonjour.h"
typedef BrowseBonjour BrowseZeroConf;
#endif
#endif