weston-log: add function to avoid direct access to compositor members in non-core code
If we use the function weston_log_context_add_log_scope() in non-core code, it's necessary to access weston_compositor::weston_log_ctx. This is not ideal, since the goal is to make core structs (weston_compositor, weston_surface, weston_output, etc) opaque. Add function weston_compositor_add_log_scope(), so non-core users are able to pass weston_compositor as argument instead of weston_compositor::weston_log_ctx. Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net>
This commit is contained in:
committed by
Pekka Paalanen
parent
ac691a89cd
commit
f66685d9db
@@ -26,11 +26,11 @@ Instantiation of the :type:`weston_log_context` object takes place using
|
||||
Log scopes
|
||||
----------
|
||||
|
||||
A scope represents a source for a data stream (i.e., a producer). You'll require
|
||||
one as a way to generate data. Creating a log scope is done using
|
||||
:func:`weston_log_ctx_add_log_scope()`. You can customize the scope
|
||||
behaviour and you'll require at least a name and a description for the
|
||||
scope.
|
||||
A scope represents a source for a data stream (i.e., a producer). You'll
|
||||
require one as a way to generate data. Creating a log scope is done using
|
||||
:func:`weston_log_ctx_add_log_scope()` or
|
||||
:func:`weston_compositor_add_log_scope()`. You can customize the scope
|
||||
behaviour and you'll require at least a name and a description for the scope.
|
||||
|
||||
.. note::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user