summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorGiulio Camuffo <giuliocamuffo@gmail.com>2016-08-12 09:33:06 +0200
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-08-12 11:59:46 +0300
commit450f06e21a3dc772b96de12d81ea27d665f8b33c (patch)
treec947525e40be4626a86d9dd61f30423e6157db6b /Makefile.am
parentAdd API to retrieve and iterate over the resources list of a client (diff)
downloadwayland-450f06e21a3dc772b96de12d81ea27d665f8b33c.tar
wayland-450f06e21a3dc772b96de12d81ea27d665f8b33c.tar.gz
wayland-450f06e21a3dc772b96de12d81ea27d665f8b33c.tar.bz2
wayland-450f06e21a3dc772b96de12d81ea27d665f8b33c.tar.lz
wayland-450f06e21a3dc772b96de12d81ea27d665f8b33c.tar.xz
wayland-450f06e21a3dc772b96de12d81ea27d665f8b33c.tar.zst
wayland-450f06e21a3dc772b96de12d81ea27d665f8b33c.zip
Add API to install protocol loggers on the server wl_display
The new wl_display_add_protocol_logger allows to set a function as a logger, which will get called when a new request is received or an event is sent. This is akin to setting WAYLAND_DEBUG=1, but more powerful because it can be enabled at run time and allows to show the log e.g. in a UI view. A test is added for the new functionality. Signed-off-by: Giulio Camuffo <giulio.camuffo@kdab.com> Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com> Reviewed-by: Yong Bakos <ybakos@humanoriented.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index e684a87..3eb6fd5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -161,7 +161,8 @@ TESTS = \
resources-test \
message-test \
headers-test \
- compositor-introspection-test
+ compositor-introspection-test \
+ protocol-logger-test
if ENABLE_CPP_TEST
TESTS += cpp-compile-test
@@ -220,6 +221,8 @@ message_test_SOURCES = tests/message-test.c
message_test_LDADD = libtest-runner.la
compositor_introspection_test_SOURCES = tests/compositor-introspection-test.c
compositor_introspection_test_LDADD = libtest-runner.la
+protocol_logger_test_SOURCES = tests/protocol-logger-test.c
+protocol_logger_test_LDADD = libtest-runner.la
headers_test_SOURCES = tests/headers-test.c \
tests/headers-protocol-test.c \
tests/headers-protocol-core-test.c