summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/client-browse-services.c2
-rw-r--r--examples/client-publish-service.c3
-rw-r--r--examples/glib-integration.c1
3 files changed, 4 insertions, 2 deletions
diff --git a/examples/client-browse-services.c b/examples/client-browse-services.c
index 00703e6..37550ef 100644
--- a/examples/client-browse-services.c
+++ b/examples/client-browse-services.c
@@ -164,7 +164,7 @@ int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char*argv[]) {
}
/* Allocate a new client */
- client = avahi_client_new(avahi_simple_poll_get(simple_poll), client_callback, NULL, &error);
+ client = avahi_client_new(avahi_simple_poll_get(simple_poll), 0, client_callback, NULL, &error);
/* Check wether creating the client object succeeded */
if (!client) {
diff --git a/examples/client-publish-service.c b/examples/client-publish-service.c
index 50a7002..a9f9f8c 100644
--- a/examples/client-publish-service.c
+++ b/examples/client-publish-service.c
@@ -157,6 +157,7 @@ static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UN
break;
+ case AVAHI_CLIENT_CONNECTING:
case AVAHI_CLIENT_S_REGISTERING:
;
}
@@ -176,7 +177,7 @@ int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char*argv[]) {
name = avahi_strdup("MegaPrinter");
/* Allocate a new client */
- client = avahi_client_new(avahi_simple_poll_get(simple_poll), client_callback, NULL, &error);
+ client = avahi_client_new(avahi_simple_poll_get(simple_poll), 0, client_callback, NULL, &error);
/* Check wether creating the client object succeeded */
if (!client) {
diff --git a/examples/glib-integration.c b/examples/glib-integration.c
index f1830d8..ab53687 100644
--- a/examples/glib-integration.c
+++ b/examples/glib-integration.c
@@ -108,6 +108,7 @@ main (AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[])
/* Create a new AvahiClient instance */
client = avahi_client_new (poll_api, /* AvahiPoll object from above */
+ 0,
avahi_client_callback, /* Callback function for Client state changes */
loop, /* User data */
&error); /* Error return */