weston-log: rename weston_log_ctx_compositor_create() to weston_log_ctx_create()
Since weston_log_ctx_compositor_create() does not have any relation with weston_compositor, rename it to weston_log_ctx_create(). Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net>
This commit is contained in:
+1
-1
@@ -3156,7 +3156,7 @@ wet_main(int argc, char *argv[])
|
|||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
log_ctx = weston_log_ctx_compositor_create();
|
log_ctx = weston_log_ctx_create();
|
||||||
if (!log_ctx) {
|
if (!log_ctx) {
|
||||||
fprintf(stderr, "Failed to initialize weston debug framework.\n");
|
fprintf(stderr, "Failed to initialize weston debug framework.\n");
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ instance can be brought up much more later, but in the same time logging can
|
|||||||
take place much earlier without the need of a compositor instance.
|
take place much earlier without the need of a compositor instance.
|
||||||
|
|
||||||
Instantiation of the :type:`weston_log_context` object takes place using
|
Instantiation of the :type:`weston_log_context` object takes place using
|
||||||
:func:`weston_log_ctx_compositor_create()` and clean-up/destroy with
|
:func:`weston_log_ctx_create()` and clean-up/destroy with
|
||||||
:func:`weston_log_ctx_compositor_destroy()`.
|
:func:`weston_log_ctx_compositor_destroy()`.
|
||||||
|
|
||||||
Log scopes
|
Log scopes
|
||||||
|
|||||||
@@ -2042,7 +2042,7 @@ weston_compositor_enable_touch_calibrator(struct weston_compositor *compositor,
|
|||||||
weston_touch_calibration_save_func save);
|
weston_touch_calibration_save_func save);
|
||||||
|
|
||||||
struct weston_log_context *
|
struct weston_log_context *
|
||||||
weston_log_ctx_compositor_create(void);
|
weston_log_ctx_create(void);
|
||||||
|
|
||||||
void
|
void
|
||||||
weston_log_ctx_compositor_destroy(struct weston_compositor *compositor);
|
weston_log_ctx_compositor_destroy(struct weston_compositor *compositor);
|
||||||
|
|||||||
@@ -408,7 +408,7 @@ weston_debug_protocol_advertise_scopes(struct weston_log_context *log_ctx,
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
WL_EXPORT struct weston_log_context *
|
WL_EXPORT struct weston_log_context *
|
||||||
weston_log_ctx_compositor_create(void)
|
weston_log_ctx_create(void)
|
||||||
{
|
{
|
||||||
struct weston_log_context *log_ctx;
|
struct weston_log_context *log_ctx;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user