X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Favahi-test.c;h=46e68d55710c5ab57846c5bbdfbf0e7080446bba;hb=d322a943be5387a539f8f3ea3a19a7e2ed5a55a2;hp=0490c84972256e88466ddbfb9d964581499f2b05;hpb=1ffedb586bd2fb6daa3970304fac7c5b415cd38f;p=catta diff --git a/avahi-core/avahi-test.c b/avahi-core/avahi-test.c index 0490c84..46e68d5 100644 --- a/avahi-core/avahi-test.c +++ b/avahi-core/avahi-test.c @@ -71,7 +71,6 @@ static const char *browser_event_to_string(AvahiBrowserEvent event) { case AVAHI_BROWSER_CACHE_EXHAUSTED : return "CACHE_EXHAUSTED"; case AVAHI_BROWSER_ALL_FOR_NOW : return "ALL_FOR_NOW"; case AVAHI_BROWSER_FAILURE : return "FAILURE"; - case AVAHI_BROWSER_NOT_FOUND : return "NOT_FOUND"; } abort(); @@ -80,8 +79,6 @@ static const char *browser_event_to_string(AvahiBrowserEvent event) { static const char *resolver_event_to_string(AvahiResolverEvent event) { switch (event) { case AVAHI_RESOLVER_FOUND: return "FOUND"; - case AVAHI_RESOLVER_TIMEOUT: return "TIMEOUT"; - case AVAHI_RESOLVER_NOT_FOUND: return "NOT_FOUND"; case AVAHI_RESOLVER_FAILURE: return "FAILURE"; } abort(); @@ -164,22 +161,22 @@ static void create_entries(int new_name) { service_name = n; } - if (avahi_server_add_service(server, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, service_name, "_http._tcp", NULL, NULL, 80, "foo", NULL) < 0) { + if (avahi_server_add_service(server, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, service_name, "_http._tcp", NULL, NULL, 80, "foo", NULL) < 0) { avahi_log_error("Failed to add HTTP service"); goto fail; } - if (avahi_server_add_service(server, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, service_name, "_ftp._tcp", NULL, NULL, 21, "foo", NULL) < 0) { + if (avahi_server_add_service(server, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, service_name, "_ftp._tcp", NULL, NULL, 21, "foo", NULL) < 0) { avahi_log_error("Failed to add FTP service"); goto fail; } - if (avahi_server_add_service(server, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, service_name, "_webdav._tcp", NULL, NULL, 80, "foo", NULL) < 0) { + if (avahi_server_add_service(server, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0,service_name, "_webdav._tcp", NULL, NULL, 80, "foo", NULL) < 0) { avahi_log_error("Failed to add WEBDAV service"); goto fail; } - if (avahi_server_add_dns_server_address(server, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, NULL, AVAHI_DNS_SERVER_RESOLVE, avahi_address_parse("192.168.50.1", AVAHI_PROTO_UNSPEC, &a), 53) < 0) { + if (avahi_server_add_dns_server_address(server, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, NULL, AVAHI_DNS_SERVER_RESOLVE, avahi_address_parse("192.168.50.1", AVAHI_PROTO_UNSPEC, &a), 53) < 0) { avahi_log_error("Failed to add new DNS Server address"); goto fail; }