weston-log: rename the confusing function name weston_compositor_log_scope_destroy()
There's a function named weston_compositor_log_scope_destroy() but it doesn't take a struct weston_compositor argument. Rename it to weston_log_scope_destroy(), as the argument is a struct weston_log_scope. Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net>
This commit is contained in:
@@ -2387,7 +2387,7 @@ drm_destroy(struct weston_compositor *ec)
|
||||
|
||||
destroy_sprites(b);
|
||||
|
||||
weston_compositor_log_scope_destroy(b->debug);
|
||||
weston_log_scope_destroy(b->debug);
|
||||
b->debug = NULL;
|
||||
weston_compositor_shutdown(ec);
|
||||
|
||||
|
||||
@@ -7699,10 +7699,10 @@ weston_compositor_tear_down(struct weston_compositor *compositor)
|
||||
if (compositor->heads_changed_source)
|
||||
wl_event_source_remove(compositor->heads_changed_source);
|
||||
|
||||
weston_compositor_log_scope_destroy(compositor->debug_scene);
|
||||
weston_log_scope_destroy(compositor->debug_scene);
|
||||
compositor->debug_scene = NULL;
|
||||
|
||||
weston_compositor_log_scope_destroy(compositor->timeline);
|
||||
weston_log_scope_destroy(compositor->timeline);
|
||||
compositor->timeline = NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ cp_destroy_listener(struct wl_listener *listener, void *data)
|
||||
destroy_listener);
|
||||
wl_list_remove(&cp->destroy_listener.link);
|
||||
wl_list_remove(&cp->protected_list);
|
||||
weston_compositor_log_scope_destroy(cp->debug);
|
||||
weston_log_scope_destroy(cp->debug);
|
||||
cp->debug = NULL;
|
||||
cp->surface_protection_update = NULL;
|
||||
free(cp);
|
||||
|
||||
@@ -573,7 +573,7 @@ weston_compositor_is_debug_protocol_enabled(struct weston_compositor *wc)
|
||||
* against the scope being created and if found will be added to the scope's
|
||||
* subscription list.
|
||||
*
|
||||
* The log scope must be destroyed using weston_compositor_log_scope_destroy()
|
||||
* The log scope must be destroyed using weston_log_scope_destroy()
|
||||
* before destroying the weston_compositor.
|
||||
*
|
||||
* @memberof weston_log_scope
|
||||
@@ -654,7 +654,7 @@ weston_log_ctx_add_log_scope(struct weston_log_context *log_ctx,
|
||||
* @memberof weston_log_scope
|
||||
*/
|
||||
WL_EXPORT void
|
||||
weston_compositor_log_scope_destroy(struct weston_log_scope *scope)
|
||||
weston_log_scope_destroy(struct weston_log_scope *scope)
|
||||
{
|
||||
struct weston_log_subscription *sub, *sub_tmp;
|
||||
|
||||
@@ -726,7 +726,7 @@ weston_log_subscription_complete(struct weston_log_subscription *sub)
|
||||
* stream. Particularly useful for the weston-debug protocol.
|
||||
*
|
||||
* @memberof weston_log_scope
|
||||
* @sa weston_log_ctx_add_log_scope, weston_compositor_log_scope_destroy
|
||||
* @sa weston_log_ctx_add_log_scope, weston_log_scope_destroy
|
||||
*/
|
||||
WL_EXPORT void
|
||||
weston_log_scope_complete(struct weston_log_scope *scope)
|
||||
|
||||
Reference in New Issue
Block a user