19969N/A avahi_interface_monitor_update_rrs(s->monitor, 0);
19969N/A s->callback(s, state, s->userdata);
19969N/A server_set_state(s, AVAHI_SERVER_REGISTERING);
19969N/A s->n_host_rr_pending ++; /** Make sure that the state isn't changed tp AVAHI_SERVER_RUNNING too early */
19969N/A avahi_interface_monitor_update_rrs(s->monitor, 0);
19969N/A assert(s->n_host_rr_pending > 0);
10786N/A avahi_server_config_init(&s->config);
10786N/A if ((e = setup_sockets(s)) < 0) {
10786N/A s->local_service_cookie = (uint32_t) rand() * (uint32_t) rand();
10786N/A } while (s->local_service_cookie == AVAHI_SERVICE_COOKIE_INVALID);
10786N/A+ AVAHI_LLIST_HEAD_INIT(AvahiService, s->services);
10786N/A+ s->wide_area_lookup_engine = NULL;
10786N/A+ s->multicast_lookup_engine = NULL;
10786N/A s->wide_area_lookup_engine = avahi_wide_area_engine_new(s);
19969N/A s->monitor = avahi_interface_monitor_new(s);
19969N/A avahi_interface_monitor_sync(s->monitor);
10786N/A avahi_entry_free(s, s->entries);
10786N/A- avahi_interface_monitor_free(s->monitor);
10786N/A+ avahi_interface_monitor_free(s->monitor);
10786N/A avahi_entry_group_free(s, s->groups);
19969N/A if (s->wide_area_lookup_engine)
19969N/A avahi_wide_area_engine_free(s->wide_area_lookup_engine);
19969N/A- avahi_multicast_lookup_engine_free(s->multicast_lookup_engine);
19969N/A+ if (s->multicast_lookup_engine)
19969N/A+ avahi_multicast_lookup_engine_free(s->multicast_lookup_engine);
19969N/A avahi_time_event_free(s->cleanup_time_event);
10786N/A avahi_server_config_free(&s->config);
10786N/A+ avahi_time_event_free(s->cleanup_time_event);