HomeSort by relevance Sort by last modified time
    Searched refs:simple_poll (Results 1 - 22 of 22) sorted by null

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

Completed in 1016 milliseconds