mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-05 12:21:43 +02:00
rename files to snake_case
This commit is contained in:
parent
ea3921d8b7
commit
a30f548a31
87 changed files with 181 additions and 212 deletions
37
client/browseZeroConf/browse_mdns.hpp
Normal file
37
client/browseZeroConf/browse_mdns.hpp
Normal file
|
@ -0,0 +1,37 @@
|
|||
#ifndef BROWSEMDNS_H
|
||||
#define BROWSEMDNS_H
|
||||
|
||||
#include <string>
|
||||
|
||||
enum IPVersion
|
||||
{
|
||||
IPv4 = 0,
|
||||
IPv6 = 1
|
||||
};
|
||||
|
||||
|
||||
struct mDNSResult
|
||||
{
|
||||
IPVersion ip_version;
|
||||
int iface_idx;
|
||||
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 "browse_avahi.hpp"
|
||||
typedef BrowseAvahi BrowseZeroConf;
|
||||
#elif defined(HAS_BONJOUR)
|
||||
#include "browseBonjour.h"
|
||||
typedef BrowseBonjour BrowseZeroConf;
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue