"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/test-compositor.h" between
wayland-1.17.0.tar.xz and wayland-1.18.0.tar.xz

About: Wayland is a computer display server protocol for a compositor to talk to its clients and a library for Linux implementing that protocol.

test-compositor.h  (wayland-1.17.0.tar.xz):test-compositor.h  (wayland-1.18.0.tar.xz)
skipping to change at line 73 skipping to change at line 73
struct client { struct client {
struct wl_display *wl_display; struct wl_display *wl_display;
struct test_compositor *tc; struct test_compositor *tc;
int display_stopped; int display_stopped;
}; };
struct client *client_connect(void); struct client *client_connect(void);
void client_disconnect(struct client *); void client_disconnect(struct client *);
int stop_display(struct client *, int); int stop_display(struct client *, int);
void noop_request(struct client *);
/** /**
* Usual workflow: * Usual workflow:
* *
* d = display_create(); * d = display_create();
* *
* wl_global_create(d->wl_display, ...); * wl_global_create(d->wl_display, ...);
* ... other setups ... * ... other setups ...
* *
* client_create(d, client_main, data); * client_create(d, client_main, data);
* client_create(d, client_main2, data); * client_create(d, client_main2, data);
* *
* display_run(d); * display_run(d);
* display_destroy(d); * display_destroy(d);
*/ */
struct display *display_create(void); struct display *display_create(void);
void display_destroy(struct display *d); void display_destroy(struct display *d);
void display_run(struct display *d); void display_run(struct display *d);
/* This function posts the display_resumed event to all waiting clients,
* so that after flushing events the clients will stop waiting and continue.
*
* (Calling `display_run` after this function will resume the display loop.)
*/
void display_post_resume_events(struct display *d);
/* After n clients called stop_display(..., n), the display /* After n clients called stop_display(..., n), the display
* is stopped and can process the code after display_run(). * is stopped and can process the code after display_run().
* This function rerun the display again and send display_resumed *
* event to waiting clients, so the clients will stop waiting and continue */ * This function posts the display_resumed event to the waiting
* clients, so that the clients will stop waiting and continue;
* it then reruns the display. */
void display_resume(struct display *d); void display_resume(struct display *d);
struct client_info *client_create_with_name(struct display *d, struct client_info *client_create_with_name(struct display *d,
void (*client_main)(void *data), void (*client_main)(void *data),
void *data, void *data,
const char *name); const char *name);
#define client_create(d, c, data) client_create_with_name((d), (c), data, (#c)) #define client_create(d, c, data) client_create_with_name((d), (c), data, (#c))
#define client_create_noarg(d, c) \ #define client_create_noarg(d, c) \
client_create_with_name((d), (void(*)(void *)) (c), NULL, (#c)) client_create_with_name((d), (void(*)(void *)) (c), NULL, (#c))
 End of changes. 3 change blocks. 
2 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)