From: Bryce Harrington Date: Thu, 23 Apr 2015 23:33:49 +0000 (-0700) Subject: tests: Handle screenshot done event in weston-test X-Git-Tag: 1.7.93~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=692275f91fe458ac6c858a8d612540d72a1807cc;p=platform%2Fupstream%2Fweston.git tests: Handle screenshot done event in weston-test Signed-off-by: Bryce Harrington Reviewed-By: Derek Foreman --- diff --git a/tests/weston-test-client-helper.c b/tests/weston-test-client-helper.c index e9ebc83..e6817bd 100644 --- a/tests/weston-test-client-helper.c +++ b/tests/weston-test-client-helper.c @@ -446,9 +446,19 @@ test_handle_n_egl_buffers(void *data, struct weston_test *weston_test, uint32_t test->n_egl_buffers = n; } +static void +test_handle_capture_screenshot_done(void *data, struct weston_test *weston_test) +{ + struct test *test = data; + + printf("Screenshot has been captured\n"); + test->buffer_copy_done = 1; +} + static const struct weston_test_listener test_listener = { test_handle_pointer_position, test_handle_n_egl_buffers, + test_handle_capture_screenshot_done, }; static void diff --git a/tests/weston-test-client-helper.h b/tests/weston-test-client-helper.h index 2564044..0ff2877 100644 --- a/tests/weston-test-client-helper.h +++ b/tests/weston-test-client-helper.h @@ -64,6 +64,7 @@ struct test { int pointer_x; int pointer_y; uint32_t n_egl_buffers; + int buffer_copy_done; }; struct input {