summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2022-08-18 17:05:00 +0300
committerMarius Vlad <marius.vlad@collabora.com>2022-11-10 10:57:43 +0200
commitb749138758396d22ecbf448b18d7b835329259d1 (patch)
tree9e719e42eed4589105350fa537cef80c0469c224 /tests
parentf3bed68100b7187644567f89edcdb510c2911892 (diff)
downloadweston-b749138758396d22ecbf448b18d7b835329259d1.tar.gz
libweston: Send name,description, update wl_output to ver 4
These have been in wayland a while back with version 1.20.0. We also need to update the test client helper with this bump, as those bind to version 4. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/weston-test-client-helper.c18
-rw-r--r--tests/weston-test-client-helper.h2
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/weston-test-client-helper.c b/tests/weston-test-client-helper.c
index ca49a04d..fdfc8097 100644
--- a/tests/weston-test-client-helper.c
+++ b/tests/weston-test-client-helper.c
@@ -718,6 +718,20 @@ output_handle_scale(void *data,
}
static void
+output_handle_name(void *data, struct wl_output *wl_output, const char *name)
+{
+ struct output *output = data;
+ output->name = strdup(name);
+}
+
+static void
+output_handle_description(void *data, struct wl_output *wl_output, const char *desc)
+{
+ struct output *output = data;
+ output->name = strdup(desc);
+}
+
+static void
output_handle_done(void *data,
struct wl_output *wl_output)
{
@@ -731,6 +745,8 @@ static const struct wl_output_listener output_listener = {
output_handle_mode,
output_handle_done,
output_handle_scale,
+ output_handle_name,
+ output_handle_description,
};
static void
@@ -739,6 +755,8 @@ output_destroy(struct output *output)
assert(wl_proxy_get_version((struct wl_proxy *)output->wl_output) >= 3);
wl_output_release(output->wl_output);
wl_list_remove(&output->link);
+ free(output->name);
+ free(output->desc);
free(output);
}
diff --git a/tests/weston-test-client-helper.h b/tests/weston-test-client-helper.h
index 34183249..7cf84d28 100644
--- a/tests/weston-test-client-helper.h
+++ b/tests/weston-test-client-helper.h
@@ -163,6 +163,8 @@ struct output {
int height;
int scale;
int initialized;
+ char *name;
+ char *desc;
};
struct buffer {