/external/avahi/avahi-common/ |
D | dbus-watch-glue.c | 63 const AvahiPoll *poll_api; member 81 d->poll_api->timeout_free(d->dispatch_timeout); in connection_data_unref() 92 d->poll_api->timeout_update(d->dispatch_timeout, &tv); in request_dispatch() 94 d->poll_api->timeout_update(d->dispatch_timeout, NULL); in request_dispatch() 125 static dbus_bool_t update_watch(const AvahiPoll *poll_api, DBusWatch *dbus_watch) { in update_watch() argument 137 if (!(avahi_watch = poll_api->watch_new( in update_watch() 138 poll_api, in update_watch() 153 poll_api->watch_free(avahi_watch); in update_watch() 159 poll_api->watch_update(avahi_watch, dbus_watch_get_flags(dbus_watch)); in update_watch() 171 return update_watch(d->poll_api, dbus_watch); in add_watch() [all …]
|
D | dbus-watch-glue.h | 29 int avahi_dbus_connection_glue(DBusConnection *c, const AvahiPoll *poll_api);
|
/external/avahi/avahi-core/ |
D | querier-test.c | 41 static const AvahiPoll * poll_api = NULL; variable 75 poll_api->timeout_free(timeout); in create_second_service_browser() 89 poll_api = avahi_simple_poll_get(simple_poll); in main() 90 assert(poll_api); in main() 102 server = avahi_server_new(poll_api, &config, NULL, NULL, NULL); in main() 109 …poll_api->timeout_new(poll_api, avahi_elapse_time(&tv, 10000, 0), create_second_service_browser, N… in main() 111 poll_api->timeout_new(poll_api, avahi_elapse_time(&tv, 60000, 0), quit, NULL); in main()
|
D | conformance-test.c | 48 static const AvahiPoll *poll_api; variable 60 poll_api->timeout_update(timeout, &tv); in dump_timeout_callback() 94 poll_api->timeout_update(timeout, &tv); in rename_timeout_callback() 129 poll_api = avahi_simple_poll_get(simple_poll); in main() 136 avahi = avahi_server_new(poll_api, &config, server_callback, NULL, &error); in main() 140 poll_api->timeout_new(poll_api, &tv, dump_timeout_callback, avahi); in main() 143 poll_api->timeout_new(poll_api, &tv, rename_timeout_callback, avahi); in main()
|
D | timeeventq.c | 43 const AvahiPoll *poll_api; member 71 q->poll_api->timeout_update(q->timeout, &e->expiry); in update_timeout() 73 q->poll_api->timeout_update(q->timeout, NULL); in update_timeout() 117 AvahiTimeEventQueue* avahi_time_event_queue_new(const AvahiPoll *poll_api) { in avahi_time_event_queue_new() argument 125 q->poll_api = poll_api; in avahi_time_event_queue_new() 130 if (!(q->timeout = poll_api->timeout_new(poll_api, NULL, expiration_event, q))) in avahi_time_event_queue_new() 156 q->poll_api->timeout_free(q->timeout); in avahi_time_event_queue_free()
|
D | update-test.c | 70 const AvahiPoll *poll_api; in main() local 78 poll_api = avahi_simple_poll_get(simple_poll); in main() 79 assert(poll_api); in main() 83 server = avahi_server_new(poll_api, &config, server_callback, NULL, NULL); in main() 87 … poll_api->timeout_new(poll_api, avahi_elapse_time(&tv, 1000*10, 0), modify_txt_callback, server); in main()
|
D | netlink.c | 42 const AvahiPoll *poll_api; member 114 AvahiNetlink *avahi_netlink_new(const AvahiPoll *poll_api, uint32_t groups, void (*cb) (AvahiNetlin… in avahi_netlink_new() argument 120 assert(poll_api); in avahi_netlink_new() 148 nl->poll_api = poll_api; in avahi_netlink_new() 159 if (!(nl->watch = poll_api->watch_new(poll_api, fd, AVAHI_WATCH_IN, socket_event, nl))) { in avahi_netlink_new() 183 nl->poll_api->watch_free(nl->watch); in avahi_netlink_free()
|
D | avahi-test.c | 48 static const AvahiPoll *poll_api; variable 67 poll_api->timeout_update(timeout, &tv); in dump_timeout_callback() 344 poll_api = avahi_simple_poll_get(simple_poll); in main() 352 server = avahi_server_new(poll_api, &config, server_callback, NULL, &error); in main() 374 poll_api->timeout_new(poll_api, &tv, dump_timeout_callback, server); in main() 377 poll_api->timeout_new(poll_api, &tv, quit_timeout_callback, simple_poll); in main()
|
D | server.c | 1348 …s->watch_ipv4 = s->poll_api->watch_new(s->poll_api, s->fd_ipv4, AVAHI_WATCH_IN, mcast_socket_event… in setup_sockets() 1350 …s->watch_ipv6 = s->poll_api->watch_new(s->poll_api, s->fd_ipv6, AVAHI_WATCH_IN, mcast_socket_event… in setup_sockets() 1353 …s->watch_legacy_unicast_ipv4 = s->poll_api->watch_new(s->poll_api, s->fd_legacy_unicast_ipv4, AVAH… in setup_sockets() 1355 …s->watch_legacy_unicast_ipv6 = s->poll_api->watch_new(s->poll_api, s->fd_legacy_unicast_ipv6, AVAH… in setup_sockets() 1360 AvahiServer *avahi_server_new(const AvahiPoll *poll_api, const AvahiServerConfig *sc, AvahiServerCa… in avahi_server_new() argument 1377 s->poll_api = poll_api; in avahi_server_new() 1407 s->time_event_queue = avahi_time_event_queue_new(poll_api); in avahi_server_new() 1506 s->poll_api->watch_free(s->watch_ipv4); in avahi_server_free() 1508 s->poll_api->watch_free(s->watch_ipv6); in avahi_server_free() 1511 s->poll_api->watch_free(s->watch_legacy_unicast_ipv4); in avahi_server_free() [all …]
|
D | wide-area.c | 601 …e->watch_ipv4 = s->poll_api->watch_new(e->server->poll_api, e->fd_ipv4, AVAHI_WATCH_IN, socket_eve… in avahi_wide_area_engine_new() 603 …e->watch_ipv6 = s->poll_api->watch_new(e->server->poll_api, e->fd_ipv6, AVAHI_WATCH_IN, socket_eve… in avahi_wide_area_engine_new() 634 e->server->poll_api->watch_free(e->watch_ipv4); in avahi_wide_area_engine_free() 637 e->server->poll_api->watch_free(e->watch_ipv6); in avahi_wide_area_engine_free()
|
D | iface-pfroute.c | 302 if (!(m->osdep.pfroute->watch = m->server->poll_api->watch_new(m->server->poll_api, in avahi_interface_monitor_init_osdep() 317 m->server->poll_api->watch_free(m->osdep.pfroute->watch); in avahi_interface_monitor_init_osdep() 333 m->server->poll_api->watch_free(m->osdep.pfroute->watch); in avahi_interface_monitor_free_osdep()
|
D | netlink.h | 36 AvahiNetlink *avahi_netlink_new(const AvahiPoll *poll_api, uint32_t groups, AvahiNetlinkCallback ca…
|
D | timeeventq.h | 34 AvahiTimeEventQueue* avahi_time_event_queue_new(const AvahiPoll *poll_api);
|
/external/avahi/avahi-client/ |
D | client-test.c | 36 static const AvahiPoll *poll_api = NULL; variable 227 poll_api = avahi_simple_poll_get(simple_poll); in main() 229 … if (!(avahi = avahi_client_new(poll_api, 0, avahi_client_callback, (char*) "omghai2u", &error))) { in main() 304 poll_api->timeout_new(poll_api, &tv, test_entry_group_reset, group); in main() 306 poll_api->timeout_new(poll_api, &tv, test_entry_group_update, group); in main() 308 poll_api->timeout_new(poll_api, &tv, test_free_entry_group, group); in main() 310 poll_api->timeout_new(poll_api, &tv, test_free_domain_browser, sb); in main() 313 poll_api->timeout_new(poll_api, &tv, terminate, NULL); in main()
|
D | srv-test.c | 54 const AvahiPoll *poll_api; in main() local 61 poll_api = avahi_simple_poll_get(simple_poll); in main() 62 assert(poll_api); in main() 64 client = avahi_client_new(poll_api, 0, NULL, NULL, NULL); in main()
|
D | rr-test.c | 89 const AvahiPoll *poll_api; in main() local 96 poll_api = avahi_simple_poll_get(simple_poll); in main() 97 assert(poll_api); in main() 99 client = avahi_client_new(poll_api, 0, NULL, NULL, NULL); in main()
|
D | client.h | 63 const AvahiPoll *poll_api /**< The abstract event loop API to use */,
|
D | client.c | 478 AvahiClient *avahi_client_new(const AvahiPoll *poll_api, AvahiClientFlags flags, AvahiClientCallbac… in avahi_client_new() argument 493 client->poll_api = poll_api; in avahi_client_new() 521 if (avahi_dbus_connection_glue(client->bus, poll_api) < 0) { in avahi_client_new()
|
/external/avahi/examples/ |
D | glib-integration.c | 75 const AvahiPoll *poll_api; in main() local 90 poll_api = avahi_glib_poll_get (glib_poll); in main() 97 poll_api->timeout_new (poll_api, /* The AvahiPoll object */ in main() 108 client = avahi_client_new (poll_api, /* AvahiPoll object from above */ in main()
|
/external/avahi/avahi-daemon/ |
D | simple-protocol.c | 94 const AvahiPoll *poll_api; member 122 c->server->poll_api->watch_free(c->watch); in client_free() 145 c->watch = s->poll_api->watch_new(s->poll_api, fd, AVAHI_WATCH_IN, client_work, c); in client_new() 166 server->poll_api->watch_update(c->watch, AVAHI_WATCH_OUT); in client_output() 427 c->server->poll_api->watch_update( in client_work() 448 int simple_protocol_setup(const AvahiPoll *poll_api) { in simple_protocol_setup() argument 456 server->poll_api = poll_api; in simple_protocol_setup() 518 server->watch = poll_api->watch_new(poll_api, server->fd, AVAHI_WATCH_IN, server_work, server); in simple_protocol_setup() 545 server->poll_api->watch_free(server->watch); in simple_protocol_shutdown()
|
D | main.c | 1079 const AvahiPoll *poll_api; in signal_callback() local 1084 poll_api = avahi_simple_poll_get(simple_poll_api); in signal_callback() 1088 poll_api->watch_free(watch); in signal_callback() 1134 const AvahiPoll *poll_api = NULL; in run_server() local 1157 poll_api = avahi_simple_poll_get(simple_poll_api); in run_server() 1164 …if (!(sig_watch = poll_api->watch_new(poll_api, daemon_signal_fd(), AVAHI_WATCH_IN, signal_callbac… in run_server() 1170 if (simple_protocol_setup(poll_api) < 0) in run_server() 1176 if (dbus_protocol_setup(poll_api, in run_server() 1221 …if (!(inotify_watch = poll_api->watch_new(poll_api, inotify_fd, AVAHI_WATCH_IN, inotify_callback, … in run_server() 1234 … if (!(kqueue_watch = poll_api->watch_new(poll_api, kq, AVAHI_WATCH_IN, kqueue_callback, NULL))) { in run_server() [all …]
|
D | dbus-protocol.c | 167 server->poll_api->timeout_update(t, &tv); in reconnect_callback() 170 server->poll_api->timeout_update(t, NULL); in reconnect_callback() 195 server->poll_api->timeout_update(server->reconnect_timeout, &tv); in msg_signal_filter_impl() 197 …server->reconnect_timeout = server->poll_api->timeout_new(server->poll_api, &tv, reconnect_callbac… in msg_signal_filter_impl() 1084 if (avahi_dbus_connection_glue(server->bus, server->poll_api) < 0) { in dbus_connect() 1109 …if (!(dbus_connection_add_filter(server->bus, msg_signal_filter_impl, (void*) server->poll_api, NU… in dbus_connect() 1164 int dbus_protocol_setup(const AvahiPoll *poll_api, in dbus_protocol_setup() argument 1177 server->poll_api = poll_api; in dbus_protocol_setup() 1194 …server->reconnect_timeout = server->poll_api->timeout_new(server->poll_api, &tv, reconnect_callbac… in dbus_protocol_setup() 1221 server->poll_api->timeout_free(server->reconnect_timeout); in dbus_protocol_shutdown()
|
D | simple-protocol.h | 25 int simple_protocol_setup(const AvahiPoll *poll_api);
|
D | dbus-protocol.h | 23 int dbus_protocol_setup(const AvahiPoll *poll_api,
|
/external/avahi/avahi-discover-standalone/ |
D | main.c | 324 AvahiGLibPoll *poll_api; in main() local 330 poll_api = avahi_glib_poll_new(NULL, G_PRIORITY_DEFAULT); in main() 355 server = avahi_server_new(avahi_glib_poll_get(poll_api), &config, NULL, NULL, &error); in main() 365 avahi_glib_poll_free(poll_api); in main()
|