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

Submitted by Marek Chalupa on Dec. 5, 2014, 1:36 p.m.

Details

Message ID 1417786610-2440-4-git-send-email-mchqwerty@gmail.com
State Changes Requested
Headers show

Not browsing as part of any series.

Commit Message

Marek Chalupa Dec. 5, 2014, 1:36 p.m.
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@gmail.com>
---
 tests/weston-test-client-helper.h | 9 +++++++++
 1 file changed, 9 insertions(+)

Patch hide | download patch | download mbox

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 {

Comments

On Fri,  5 Dec 2014 14:36:36 +0100
Marek Chalupa <mchqwerty@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@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