[PATCH weston v1 03/17] tests: add toytoolkit into struct client

Pekka Paalanen ppaalanen at gmail.com
Fri Dec 12 05:55:34 PST 2014


On Fri,  5 Dec 2014 14:36:36 +0100
Marek Chalupa <mchqwerty at gmail.com> wrote:

> Allow store information about toytoolkit widget in client.
> Now we'll be able to get client behave as a toytoolkit client.
> 
> Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
> ---
>  tests/weston-test-client-helper.h | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/tests/weston-test-client-helper.h b/tests/weston-test-client-helper.h
> index 721fc5f..446d158 100644
> --- a/tests/weston-test-client-helper.h
> +++ b/tests/weston-test-client-helper.h
> @@ -27,6 +27,7 @@
>  
>  #include <assert.h>
>  #include "wayland-test-client-protocol.h"
> +#include "../clients/window.h"
>  
>  #include "weston-test-runner.h"
>  
> @@ -41,6 +42,14 @@ struct client {
>  	struct surface *surface;
>  	int has_argb;
>  	struct wl_list global_list;
> +
> +	struct toytoolkit *toytoolkit;
> +};
> +
> +struct toytoolkit {
> +	struct display *display;
> +	struct window *window;
> +	struct widget *widget;
>  };
>  
>  struct global {

This patch doesn't really make sense alone. This should be squashed
with the patch that starts actually using the additions.


Thanks,
pq


More information about the wayland-devel mailing list