From ce1001966ea87026fc9dd58c69455db3e4582b3b Mon Sep 17 00:00:00 2001 From: Leandro Ribeiro Date: Thu, 26 Dec 2019 16:35:49 -0300 Subject: [PATCH] compositor: stop direct accessing core struct member Commit "weston-log: add function to avoid direct access to compositor members in non-core code" added the function weston_compositor_add_log_scope mainly to allow libweston users to avoid direct accessing core structs, as weston_compositor. Replace weston_log_context_add_log_scope usage by weston_compositor_add_log_scope. Signed-off-by: Leandro Ribeiro --- libweston/compositor.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libweston/compositor.c b/libweston/compositor.c index 81bd23bf7..de6931ae9 100644 --- a/libweston/compositor.c +++ b/libweston/compositor.c @@ -7301,17 +7301,17 @@ weston_compositor_create(struct wl_display *display, WESTON_LAYER_POSITION_CURSOR); ec->debug_scene = - weston_log_ctx_add_log_scope(ec->weston_log_ctx, "scene-graph", - "Scene graph details\n", - debug_scene_graph_cb, NULL, - ec); + weston_compositor_add_log_scope(ec, "scene-graph", + "Scene graph details\n", + debug_scene_graph_cb, NULL, + ec); ec->timeline = - weston_log_ctx_add_log_scope(ec->weston_log_ctx, "timeline", - "Timeline event points\n", - weston_timeline_create_subscription, - weston_timeline_destroy_subscription, - ec); + weston_compositor_add_log_scope(ec, "timeline", + "Timeline event points\n", + weston_timeline_create_subscription, + weston_timeline_destroy_subscription, + ec); return ec; fail: