Lines Matching refs:wl_display

69 	struct wl_display *display;  in TEST()
164 struct wl_registry *reg = wl_display_get_registry(c->wl_display); in client_get_seat_with_info()
170 wl_display_roundtrip(c->wl_display); in client_get_seat_with_info()
196 err = wl_display_get_error(c->wl_display); in check_pending_error()
199 ec = wl_display_get_protocol_error(c->wl_display, &intf, &id); in check_pending_error()
209 assert(wl_display_roundtrip(c->wl_display) == -1); in check_for_error()
250 wl_display_disconnect(c->wl_display); in client_disconnect_nocheck()
278 wl_global_create(d->wl_display, &wl_seat_interface, in TEST()
333 wl_global_create(d->wl_display, &wl_seat_interface, in TEST()
358 wl_global_create(d->wl_display, &wl_seat_interface, in TEST()
389 assert(wl_display_get_error(c->wl_display) == ENOMEM); in post_nomem_main()
400 wl_global_create(d->wl_display, &wl_seat_interface, in TEST()
431 int err = wl_display_get_error(c->wl_display); in post_implementation_error_main()
434 protocol_error = wl_display_get_protocol_error(c->wl_display, in post_implementation_error_main()
449 wl_global_create(d->wl_display, &wl_seat_interface, in TEST()
463 register_reading(struct wl_display *display) in register_reading()
497 register_reading(c->wl_display); in thread_read_error()
506 assert(wl_display_read_events(c->wl_display) == -1); in thread_read_error()
508 assert(wl_display_dispatch_pending(c->wl_display) == -1); in thread_read_error()
509 assert(wl_display_get_error(c->wl_display)); in thread_read_error()
524 register_reading(c->wl_display); in threading_post_err()
540 close(wl_display_get_fd(c->wl_display)); in threading_post_err()
544 assert(wl_display_read_events(c->wl_display) == -1); in threading_post_err()
570 register_reading(c->wl_display); in thread_prepare_and_read()
574 assert(wl_display_read_events(c->wl_display) == 0); in thread_prepare_and_read()
575 assert(wl_display_dispatch_pending(c->wl_display) == 0); in thread_prepare_and_read()
589 register_reading(c->wl_display); in threading_cancel_read()
597 wl_display_cancel_read(c->wl_display); in threading_cancel_read()
628 register_reading(c->wl_display); in threading_read_eagain()
638 assert(wl_display_read_events(c->wl_display) == 0); in threading_read_eagain()
666 while(wl_display_prepare_read(c->wl_display) != 0 && errno == EAGAIN) in thread_prepare_and_read2()
667 assert(wl_display_dispatch_pending(c->wl_display) == -1); in thread_prepare_and_read2()
668 assert(wl_display_flush(c->wl_display) == -1); in thread_prepare_and_read2()
672 assert(wl_display_read_events(c->wl_display) == -1); in thread_prepare_and_read2()
673 assert(wl_display_dispatch_pending(c->wl_display) == -1); in thread_prepare_and_read2()
687 close(wl_display_get_fd(c->wl_display)); in threading_read_after_error()
688 assert(wl_display_dispatch(c->wl_display) == -1); in threading_read_after_error()
691 while(wl_display_prepare_read(c->wl_display) != 0 && errno == EAGAIN) in threading_read_after_error()
692 assert(wl_display_dispatch_pending(c->wl_display) == -1); in threading_read_after_error()
693 assert(wl_display_flush(c->wl_display) == -1); in threading_read_after_error()
703 assert(wl_display_read_events(c->wl_display) == -1); in threading_read_after_error()
730 ret = wl_display_dispatch(c->wl_display); in wait_for_error_using_dispatch()
749 while (wl_display_prepare_read(c->wl_display) != 0 && in wait_for_error_using_prepare_read()
751 assert(wl_display_dispatch_pending(c->wl_display) >= 0); in wait_for_error_using_prepare_read()
759 ret = wl_display_flush(c->wl_display); in wait_for_error_using_prepare_read()
762 assert(wl_display_get_error(c->wl_display) == 0); in wait_for_error_using_prepare_read()
764 pfd[0].fd = wl_display_get_fd(c->wl_display); in wait_for_error_using_prepare_read()
773 assert(wl_display_read_events(c->wl_display) == 0); in wait_for_error_using_prepare_read()
777 ret = wl_display_dispatch_pending(c->wl_display); in wait_for_error_using_prepare_read()
802 wl_display_flush(client->wl_display); in check_error_after_epipe()
806 callback = wl_display_sync(client->wl_display); in check_error_after_epipe()
849 wl_global_create(d->wl_display, &wl_seat_interface, in TEST()
886 assert(wl_proxy_get_version((struct wl_proxy *) c->wl_display) == 0); in seat_version()
905 global = wl_global_create(d->wl_display, &wl_seat_interface, in TEST()
946 assert(wl_display_get_error(c->wl_display) == EPROTO); in check_error_on_destroyed_object()
947 assert(wl_display_get_protocol_error(c->wl_display, &intf, &id) == 23); in check_error_on_destroyed_object()
959 wl_global_create(d->wl_display, &wl_seat_interface, in TEST()
1019 registry = wl_display_get_registry(c->wl_display); in get_globals()
1021 wl_display_roundtrip(c->wl_display); in get_globals()
1034 g = wl_global_create(d->wl_display, &wl_data_offer_interface, in TEST()
1036 wl_display_set_global_filter(d->wl_display, global_filter, NULL); in TEST()
1053 err = wl_display_get_error(c->wl_display); in check_bind_error()
1056 errorcode = wl_display_get_protocol_error(c->wl_display, &intf, &id); in check_bind_error()
1068 registry = wl_display_get_registry(c->wl_display); in force_bind()
1071 wl_display_roundtrip(c->wl_display); in force_bind()
1092 g = wl_global_create(d->wl_display, &wl_data_offer_interface, in TEST()
1094 wl_display_set_global_filter(d->wl_display, global_filter, name); in TEST()
1102 wl_display_set_global_filter(d->wl_display, global_filter, NULL); in TEST()
1154 registry = wl_display_get_registry(c->wl_display); in zombie_client()
1158 wl_display_roundtrip(c->wl_display); in zombie_client()
1161 wl_display_roundtrip(c->wl_display); in zombie_client()
1164 wl_display_roundtrip(c->wl_display); in zombie_client()
1257 g = wl_global_create(d->wl_display, &fd_passer_interface, in TEST()
1324 registry = wl_display_get_registry(c->wl_display); in double_zombie_client()
1328 wl_display_roundtrip(c->wl_display); in double_zombie_client()
1331 wl_display_roundtrip(c->wl_display); in double_zombie_client()
1334 wl_display_roundtrip(c->wl_display); in double_zombie_client()
1348 g = wl_global_create(d->wl_display, &fd_passer_interface, in TEST()
1387 registry = wl_display_get_registry(c->wl_display); in registry_bind_interface_mismatch_client()
1392 ret = wl_display_roundtrip(c->wl_display); in registry_bind_interface_mismatch_client()
1398 ret = wl_display_roundtrip(c->wl_display); in registry_bind_interface_mismatch_client()
1415 seat_global = wl_global_create(d->wl_display, &wl_seat_interface, in TEST()
1437 sock = wl_display_get_fd(c->wl_display); in send_overflow_client()
1448 err = wl_display_get_error(c->wl_display); in send_overflow_client()
1485 wl_display_flush_clients(d->wl_display); in TEST()
1544 registry = wl_display_get_registry(c->wl_display); in global_remove_before_client()
1549 ret = wl_display_roundtrip(c->wl_display); in global_remove_before_client()
1560 ret = wl_display_roundtrip(c->wl_display); in global_remove_before_client()
1593 registry = wl_display_get_registry(c->wl_display); in global_remove_after_client()
1598 ret = wl_display_roundtrip(c->wl_display); in global_remove_after_client()
1613 global = wl_global_create(d->wl_display, &wl_seat_interface, in TEST()