diff options
author | Leandro Ribeiro <leandrohr@riseup.net> | 2020-01-24 01:12:59 -0300 |
---|---|---|
committer | Leandro Ribeiro <leandrohr@riseup.net> | 2020-01-29 12:08:54 -0300 |
commit | 4ec38d18b335de42e7560d59b98ba021e9a029d4 (patch) | |
tree | 98ece2011dc061bf58e15eb86a90ff9cfad00ca1 /doc | |
parent | 4f13595aa70f71b3b6afa981604ba70d7b726d44 (diff) | |
download | weston-4ec38d18b335de42e7560d59b98ba021e9a029d4.tar.gz |
weston-log: replace weston_log_ctx_compositor_destroy() by weston_log_ctx_destroy()
The function weston_log_ctx_compositor_destroy(), which destroys struct
weston_log_context, takes weston_compositor as argument. We may have a
weston_log_context unlinked from a weston_compositor and currently there
is no way to destroy it.
Add function weston_log_ctx_destroy(), what makes the destruction of
weston_log_context independent of weston_compositor.
With this change, one could destroy a weston_compositor and keep the
related weston_log_context (since now weston_log_context can be destroyed
without the need of a weston_compositor). But if weston_compositor gets
destroyed it's also necessary to destroy weston_log_context::global,
as the debug protocol depends on the compositor. So a listener has been
added to the destroy signal of weston_compositor.
Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/sphinx/toc/libweston/log.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/sphinx/toc/libweston/log.rst b/doc/sphinx/toc/libweston/log.rst index edc8ef27..d768de0d 100644 --- a/doc/sphinx/toc/libweston/log.rst +++ b/doc/sphinx/toc/libweston/log.rst @@ -21,7 +21,7 @@ take place much earlier without the need of a compositor instance. Instantiation of the :type:`weston_log_context` object takes place using :func:`weston_log_ctx_create()` and clean-up/destroy with -:func:`weston_log_ctx_compositor_destroy()`. +:func:`weston_log_ctx_destroy()` or :func:`weston_log_ctx_compositor_destroy()`. Log scopes ---------- |