libweston: add weston_debug API and implementation
weston_debug is both a libweston API for relaying debugging messages,
and the compositor-debug wayland protocol implementation for accessing those
debug messages from a Wayland client.
weston_debug_compositor_{create,destroy}() are private API, hence not
exported.
Signed-off-by: Pekka Paalanen <pq@iki.fi>
append the debug scope name along with the timestamp in
weston_debug_scope_timestamp API
Signed-off-by: Maniraj Devadoss <Maniraj.Devadoss@in.bosch.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Add explicit advertisement of debug scope names.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Emre Ucan <eucan@de.adit-jv.com>
diff --git a/libweston/compositor.c b/libweston/compositor.c
index 9deb781..0161655 100644
--- a/libweston/compositor.c
+++ b/libweston/compositor.c
@@ -6361,6 +6361,9 @@
ec, bind_presentation))
goto fail;
+ if (weston_debug_compositor_create(ec) < 0)
+ goto fail;
+
if (weston_input_init(ec) != 0)
goto fail;
@@ -6702,6 +6705,8 @@
if (compositor->heads_changed_source)
wl_event_source_remove(compositor->heads_changed_source);
+ weston_debug_compositor_destroy(compositor);
+
free(compositor);
}