X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-compat-howl%2Fcompat.c;h=e4362081ca5a8740e0e1a9d3595493001ebcaa34;hb=cd4756f9d01107f1e8c7be7b751ae6a62cc14085;hp=18171f8504c8b1695a2421f1bfc4f4bcc6454be7;hpb=20011324500a728851e4888c890a756ecf71394b;p=catta diff --git a/avahi-compat-howl/compat.c b/avahi-compat-howl/compat.c index 18171f8..e436208 100644 --- a/avahi-compat-howl/compat.c +++ b/avahi-compat-howl/compat.c @@ -380,7 +380,7 @@ sw_result sw_discovery_init(sw_discovery * self) { avahi_simple_poll_set_func((*self)->simple_poll, poll_func, *self); - if (!((*self)->client = avahi_client_new(avahi_simple_poll_get((*self)->simple_poll), client_callback, *self, &error))) { + if (!((*self)->client = avahi_client_new(avahi_simple_poll_get((*self)->simple_poll), 0, client_callback, *self, &error))) { result = map_error(error); goto fail; } @@ -694,7 +694,7 @@ static void reg_client_callback(oid_data *data, AvahiClientState state) { return; switch (state) { - case AVAHI_CLIENT_DISCONNECTED: + case AVAHI_CLIENT_FAILURE: reg_report_status(data, SW_DISCOVERY_PUBLISH_INVALID); break; @@ -711,12 +711,13 @@ static void reg_client_callback(oid_data *data, AvahiClientState state) { } case AVAHI_CLIENT_S_COLLISION: + case AVAHI_CLIENT_S_REGISTERING: /* Remove our entry */ avahi_entry_group_reset(data->object); break; - case AVAHI_CLIENT_S_REGISTERING: + case AVAHI_CLIENT_CONNECTING: /* Ignore */ break; }