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

Marek Chalupa mchqwerty at gmail.com
Fri Dec 5 05:36:36 PST 2014


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 {
-- 
2.1.0



More information about the wayland-devel mailing list