/external/avahi/avahi-common/ |
D | thread-watch.c | 41 AvahiSimplePoll *simple_poll; member 71 p->retval = avahi_simple_poll_loop(p->simple_poll); in thread() 83 if (!(p->simple_poll = avahi_simple_poll_new())) in avahi_threaded_poll_new() 88 avahi_simple_poll_set_func(p->simple_poll, poll_func, &p->mutex); in avahi_threaded_poll_new() 96 if (p->simple_poll) { in avahi_threaded_poll_new() 97 avahi_simple_poll_free(p->simple_poll); in avahi_threaded_poll_new() 116 if (p->simple_poll) in avahi_threaded_poll_free() 117 avahi_simple_poll_free(p->simple_poll); in avahi_threaded_poll_free() 126 return avahi_simple_poll_get(p->simple_poll); in avahi_threaded_poll_get() 152 avahi_simple_poll_quit(p->simple_poll); in avahi_threaded_poll_stop() [all …]
|
D | watch-test.c | 38 static AvahiSimplePoll *simple_poll = NULL; variable 68 avahi_simple_poll_quit(simple_poll); in wakeup() 82 simple_poll = avahi_simple_poll_new(); in main() 83 assert(simple_poll); in main() 84 api = avahi_simple_poll_get(simple_poll); in main() 100 avahi_simple_poll_loop(simple_poll); in main() 101 avahi_simple_poll_free(simple_poll); in main()
|
D | simple-watch.c | 38 AvahiSimplePoll *simple_poll; member 51 AvahiSimplePoll *simple_poll; member 149 w->simple_poll = s; in watch_new() 173 avahi_simple_poll_wakeup(w->simple_poll); in watch_update() 178 assert(w->simple_poll); in watch_update() 179 w->simple_poll->pollfds[w->idx] = w->pollfd; in watch_update() 181 w->simple_poll->rebuild_pollfds = 1; in watch_update() 188 if (w->idx != -1 && w->simple_poll->events_valid) in watch_get_events() 189 return w->simple_poll->pollfds[w->idx].revents; in watch_get_events() 200 w->simple_poll->rebuild_pollfds = 1; in remove_pollfd() [all …]
|
/external/avahi/examples/ |
D | client-publish-service.c | 39 static AvahiSimplePoll *simple_poll = NULL; variable 77 avahi_simple_poll_quit(simple_poll); in entry_group_callback() 165 avahi_simple_poll_quit(simple_poll); in create_services() 184 avahi_simple_poll_quit(simple_poll); in client_callback() 239 if (!(simple_poll = avahi_simple_poll_new())) { in main() 247 client = avahi_client_new(avahi_simple_poll_get(simple_poll), 0, client_callback, NULL, &error); in main() 256 avahi_simple_poll_get(simple_poll)->timeout_new( in main() 257 avahi_simple_poll_get(simple_poll), in main() 263 avahi_simple_poll_loop(simple_poll); in main() 274 if (simple_poll) in main() [all …]
|
D | core-publish-service.c | 37 static AvahiSimplePoll *simple_poll = NULL; variable 76 avahi_simple_poll_quit(simple_poll); in entry_group_callback() 129 avahi_simple_poll_quit(simple_poll); in create_services() 161 avahi_simple_poll_quit(simple_poll); in server_callback() 184 avahi_simple_poll_quit(simple_poll); in server_callback() 202 if (!(simple_poll = avahi_simple_poll_new())) { in main() 215 …server = avahi_server_new(avahi_simple_poll_get(simple_poll), &config, server_callback, NULL, &err… in main() 227 avahi_simple_poll_loop(simple_poll); in main() 238 if (simple_poll) in main() 239 avahi_simple_poll_free(simple_poll); in main()
|
D | client-browse-services.c | 36 static AvahiSimplePoll *simple_poll = NULL; variable 114 avahi_simple_poll_quit(simple_poll); in browse_callback() 148 avahi_simple_poll_quit(simple_poll); in client_callback() 159 if (!(simple_poll = avahi_simple_poll_new())) { in main() 165 client = avahi_client_new(avahi_simple_poll_get(simple_poll), 0, client_callback, NULL, &error); in main() 180 avahi_simple_poll_loop(simple_poll); in main() 193 if (simple_poll) in main() 194 avahi_simple_poll_free(simple_poll); in main()
|
D | core-browse-services.c | 46 static AvahiSimplePoll *simple_poll = NULL; variable 123 avahi_simple_poll_quit(simple_poll); in browse_callback() 160 if (!(simple_poll = avahi_simple_poll_new())) { in main() 178 server = avahi_server_new(avahi_simple_poll_get(simple_poll), &config, NULL, NULL, &error); in main() 196 avahi_simple_poll_loop(simple_poll); in main() 209 if (simple_poll) in main() 210 avahi_simple_poll_free(simple_poll); in main()
|
/external/avahi/avahi-client/ |
D | srv-test.c | 53 AvahiSimplePoll *simple_poll; in main() local 58 simple_poll = avahi_simple_poll_new(); in main() 59 assert(simple_poll); in main() 61 poll_api = avahi_simple_poll_get(simple_poll); in main() 67 …LL, "_domain._udp", "0pointer.de", AVAHI_PROTO_UNSPEC, AVAHI_LOOKUP_NO_TXT, callback, simple_poll); in main() 70 avahi_simple_poll_loop(simple_poll); in main() 73 avahi_simple_poll_free(simple_poll); in main()
|
D | rr-test.c | 88 AvahiSimplePoll *simple_poll; in main() local 93 simple_poll = avahi_simple_poll_new(); in main() 94 assert(simple_poll); in main() 96 poll_api = avahi_simple_poll_get(simple_poll); in main() 102 …PROTO_UNSPEC, "ecstasy.local", AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_HINFO, 0, callback, simple_poll); in main() 105 avahi_simple_poll_loop(simple_poll); in main() 108 avahi_simple_poll_free(simple_poll); in main()
|
D | client-test.c | 37 static AvahiSimplePoll *simple_poll = NULL; variable 209 avahi_simple_poll_quit(simple_poll); in terminate() 226 simple_poll = avahi_simple_poll_new(); in main() 227 poll_api = avahi_simple_poll_get(simple_poll); in main() 315 avahi_simple_poll_loop(simple_poll); in main() 324 if (simple_poll) in main() 325 avahi_simple_poll_free(simple_poll); in main()
|
/external/avahi/avahi-utils/ |
D | sigint.c | 35 static AvahiSimplePoll *simple_poll = NULL; variable 79 avahi_simple_poll_quit(simple_poll); in watch_callback() 87 assert(!simple_poll); in sigint_install() 119 simple_poll = spoll; in sigint_install() 125 if (!simple_poll) in sigint_uninstall() 136 assert(simple_poll); in sigint_uninstall() 137 p = avahi_simple_poll_get(simple_poll); in sigint_uninstall() 143 simple_poll = NULL; in sigint_uninstall()
|
D | avahi-resolve.c | 59 static AvahiSimplePoll *simple_poll = NULL; variable 100 avahi_simple_poll_quit(simple_poll); in host_name_resolver_callback() 137 avahi_simple_poll_quit(simple_poll); in address_resolver_callback() 144 avahi_simple_poll_quit(simple_poll); in client_callback() 263 if (!(simple_poll = avahi_simple_poll_new())) { in main() 268 if (sigint_install(simple_poll) < 0) in main() 271 …if (!(client = avahi_client_new(avahi_simple_poll_get(simple_poll), 0, client_callback, NULL, &err… in main() 322 avahi_simple_poll_loop(simple_poll); in main() 335 if (simple_poll) in main() 336 avahi_simple_poll_free(simple_poll); in main()
|
D | avahi-set-host-name.c | 53 static AvahiSimplePoll *simple_poll = NULL; variable 60 avahi_simple_poll_quit(simple_poll); in client_callback() 151 if (!(simple_poll = avahi_simple_poll_new())) { in main() 156 if (sigint_install(simple_poll) < 0) in main() 159 …if (!(client = avahi_client_new(avahi_simple_poll_get(simple_poll), 0, client_callback, NULL, &err… in main() 207 if (simple_poll) in main() 208 avahi_simple_poll_free(simple_poll); in main()
|
D | avahi-browse.c | 90 static AvahiSimplePoll *simple_poll = NULL; variable 112 avahi_simple_poll_quit(simple_poll); in check_terminate() 123 avahi_simple_poll_quit(simple_poll); in check_terminate() 341 avahi_simple_poll_quit(simple_poll); in service_browser_callback() 379 avahi_simple_poll_quit(simple_poll); in browse_service_type() 415 avahi_simple_poll_quit(simple_poll); in service_type_browser_callback() 445 avahi_simple_poll_quit(simple_poll); in browse_all() 489 avahi_simple_poll_quit(simple_poll); in domain_browser_callback() 520 avahi_simple_poll_quit(simple_poll); in browse_domains() 598 …if (!(client = avahi_client_new(avahi_simple_poll_get(simple_poll), AVAHI_CLIENT_NO_FAIL, client_c… in client_callback() [all …]
|
D | avahi-publish.c | 60 static AvahiSimplePoll *simple_poll = NULL; variable 169 …if (!(client = avahi_client_new(avahi_simple_poll_get(simple_poll), AVAHI_CLIENT_NO_FAIL, client_c… in client_callback() 171 avahi_simple_poll_quit(simple_poll); in client_callback() 176 avahi_simple_poll_quit(simple_poll); in client_callback() 184 avahi_simple_poll_quit(simple_poll); in client_callback() 377 if (!(simple_poll = avahi_simple_poll_new())) { in main() 382 if (sigint_install(simple_poll) < 0) in main() 385 …if (!(client = avahi_client_new(avahi_simple_poll_get(simple_poll), config.no_fail ? AVAHI_CLIENT_… in main() 406 avahi_simple_poll_loop(simple_poll); in main() 418 if (simple_poll) in main() [all …]
|
/external/avahi/avahi-core/ |
D | querier-test.c | 43 static AvahiSimplePoll *simple_poll; variable 79 avahi_simple_poll_quit(simple_poll); in quit() 86 simple_poll = avahi_simple_poll_new(); in main() 87 assert(simple_poll); in main() 89 poll_api = avahi_simple_poll_get(simple_poll); in main() 115 if (avahi_simple_poll_iterate(simple_poll, -1) != 0) in main() 119 avahi_simple_poll_free(simple_poll); in main()
|
D | avahi-reflector.c | 38 AvahiSimplePoll *simple_poll; in main() local 40 simple_poll = avahi_simple_poll_new(); in main() 50 server = avahi_server_new(avahi_simple_poll_get(simple_poll), &config, NULL, NULL, &error); in main() 54 if (avahi_simple_poll_iterate(simple_poll, -1) != 0) in main() 58 avahi_simple_poll_free(simple_poll); in main()
|
D | update-test.c | 69 AvahiSimplePoll *simple_poll; in main() local 75 simple_poll = avahi_simple_poll_new(); in main() 76 assert(simple_poll); in main() 78 poll_api = avahi_simple_poll_get(simple_poll); in main() 89 avahi_simple_poll_loop(simple_poll); in main()
|
D | conformance-test.c | 124 AvahiSimplePoll *simple_poll; in main() local 128 simple_poll = avahi_simple_poll_new(); in main() 129 poll_api = avahi_simple_poll_get(simple_poll); in main() 149 avahi_simple_poll_loop(simple_poll); in main() 155 avahi_simple_poll_free(simple_poll); in main()
|
D | avahi-test.c | 51 AvahiSimplePoll *simple_poll = userdata; in quit_timeout_callback() local 53 avahi_simple_poll_quit(simple_poll); in quit_timeout_callback() 339 AvahiSimplePoll *simple_poll; in main() local 343 simple_poll = avahi_simple_poll_new(); in main() 344 poll_api = avahi_simple_poll_get(simple_poll); in main() 377 poll_api->timeout_new(poll_api, &tv, quit_timeout_callback, simple_poll); in main() 379 avahi_simple_poll_loop(simple_poll); in main() 396 if (simple_poll) in main() 397 avahi_simple_poll_free(simple_poll); in main()
|
/external/avahi/avahi-compat-libdns_sd/ |
D | compat.c | 66 AvahiSimplePoll *simple_poll; member 333 if ((ret = avahi_simple_poll_run(sdref->simple_poll)) < 0) { in thread_func() 393 if (!(sdref->simple_poll = avahi_simple_poll_new())) in sdref_new() 396 avahi_simple_poll_set_func(sdref->simple_poll, poll_func, sdref); in sdref_new() 399 if (avahi_simple_poll_prepare(sdref->simple_poll, -1) < 0) in sdref_new() 426 avahi_simple_poll_wakeup(sdref->simple_poll); in sdref_free() 433 if (sdref->simple_poll) in sdref_free() 434 avahi_simple_poll_free(sdref->simple_poll); in sdref_free() 497 if (avahi_simple_poll_dispatch(sdref->simple_poll) < 0) in DNSServiceProcessResult() 503 if (avahi_simple_poll_prepare(sdref->simple_poll, -1) < 0) in DNSServiceProcessResult() [all …]
|
/external/avahi/avahi-compat-howl/ |
D | compat.c | 81 AvahiSimplePoll *simple_poll; member 196 if ((ret = avahi_simple_poll_run(self->simple_poll)) < 0) { in thread_func() 362 (*self)->simple_poll = NULL; in sw_discovery_init() 376 if (!((*self)->simple_poll = avahi_simple_poll_new())) in sw_discovery_init() 379 avahi_simple_poll_set_func((*self)->simple_poll, poll_func, *self); in sw_discovery_init() 381 …if (!((*self)->client = avahi_client_new(avahi_simple_poll_get((*self)->simple_poll), 0, client_ca… in sw_discovery_init() 387 if (avahi_simple_poll_prepare((*self)->simple_poll, -1) < 0) in sw_discovery_init() 418 avahi_simple_poll_wakeup(self->simple_poll); in stop_thread() 446 if (self->simple_poll) in discovery_unref() 447 avahi_simple_poll_free(self->simple_poll); in discovery_unref() [all …]
|