Skip to content

Commit 77a753b

Browse files
committed
lib/avahi/ExplorerListener: add "host_name" parameter
1 parent 7c26bd8 commit 77a753b

5 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/lb/Cluster.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ LbCluster::ConnectZeroconfTcp(AllocatorPtr alloc,
577577

578578
void
579579
LbCluster::OnAvahiNewObject(const std::string &key,
580+
[[maybe_unused]] const char *host_name,
580581
const InetAddress &address,
581582
AvahiStringList *txt,
582583
Avahi::ObjectFlags flags) noexcept

src/lb/Cluster.hxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ private:
242242

243243
/* virtual methods from class AvahiServiceExplorerListener */
244244
void OnAvahiNewObject(const std::string &key,
245+
const char *host_name,
245246
const InetAddress &address,
246247
AvahiStringList *txt,
247248
Avahi::ObjectFlags flags) noexcept override;

src/lb/PrometheusDiscovery.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ LbPrometheusDiscovery::HandleHttpRequest(IncomingHttpRequest &request,
6666

6767
void
6868
LbPrometheusDiscovery::OnAvahiNewObject(const std::string &key,
69+
[[maybe_unused]] const char *host_name,
6970
const InetAddress &address,
7071
[[maybe_unused]] AvahiStringList *txt,
7172
[[maybe_unused]] Avahi::ObjectFlags flags) noexcept

src/lb/PrometheusDiscovery.hxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ private:
3838

3939
/* virtual methods from class AvahiServiceExplorerListener */
4040
void OnAvahiNewObject(const std::string &key,
41+
const char *host_name,
4142
const InetAddress &address,
4243
AvahiStringList *txt,
4344
Avahi::ObjectFlags flags) noexcept override;

0 commit comments

Comments
 (0)