Fixed broken build without AVAHI support
This commit is contained in:
parent
7bf73823c6
commit
5d5ddf280c
@ -55,6 +55,7 @@ class MDNSClient {
|
||||
virtual void on_remove_rtsp_source(const std::string& name,
|
||||
const std::string& domain){};
|
||||
|
||||
#ifdef _USE_AVAHI_
|
||||
static void resolve_callback(AvahiServiceResolver* r,
|
||||
AvahiIfIndex interface,
|
||||
AvahiProtocol protocol,
|
||||
@ -80,6 +81,7 @@ class MDNSClient {
|
||||
static void client_callback(AvahiClient* c,
|
||||
AvahiClientState state,
|
||||
void* userdata);
|
||||
#endif
|
||||
|
||||
void process_results();
|
||||
|
||||
|
@ -55,6 +55,7 @@ class MDNSServer {
|
||||
bool remove_service(const std::string& name);
|
||||
|
||||
protected:
|
||||
#ifdef _USE_AVAHI_
|
||||
static void entry_group_callback(AvahiEntryGroup* g,
|
||||
AvahiEntryGroupState state,
|
||||
void* userdata);
|
||||
@ -63,6 +64,7 @@ class MDNSServer {
|
||||
void* userdata);
|
||||
|
||||
bool create_services(AvahiClient* client);
|
||||
#endif
|
||||
|
||||
private:
|
||||
std::atomic_bool running_{false};
|
||||
|
Loading…
x
Reference in New Issue
Block a user