From 4f13595aa70f71b3b6afa981604ba70d7b726d44 Mon Sep 17 00:00:00 2001 From: Leandro Ribeiro Date: Fri, 17 Jan 2020 11:19:59 -0300 Subject: [PATCH] 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 --- compositor/main.c | 2 +- doc/sphinx/toc/libweston/log.rst | 2 +- include/libweston/libweston.h | 2 +- libweston/weston-log.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compositor/main.c b/compositor/main.c index e802badf..a0e54eed 100644 --- a/compositor/main.c +++ b/compositor/main.c @@ -3156,7 +3156,7 @@ wet_main(int argc, char *argv[]) return EXIT_SUCCESS; } - log_ctx = weston_log_ctx_compositor_create(); + log_ctx = weston_log_ctx_create(); if (!log_ctx) { fprintf(stderr, "Failed to initialize weston debug framework.\n"); return EXIT_FAILURE; diff --git a/doc/sphinx/toc/libweston/log.rst b/doc/sphinx/toc/libweston/log.rst index c8bba7fb..edc8ef27 100644 --- a/doc/sphinx/toc/libweston/log.rst +++ b/doc/sphinx/toc/libweston/log.rst @@ -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. 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()`. Log scopes diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h index ab2be42d..84fd1e06 100644 --- a/include/libweston/libweston.h +++ b/include/libweston/libweston.h @@ -2042,7 +2042,7 @@ weston_compositor_enable_touch_calibrator(struct weston_compositor *compositor, weston_touch_calibration_save_func save); struct weston_log_context * -weston_log_ctx_compositor_create(void); +weston_log_ctx_create(void); void weston_log_ctx_compositor_destroy(struct weston_compositor *compositor); diff --git a/libweston/weston-log.c b/libweston/weston-log.c index 2c5da4ac..4cba0e83 100644 --- a/libweston/weston-log.c +++ b/libweston/weston-log.c @@ -408,7 +408,7 @@ weston_debug_protocol_advertise_scopes(struct weston_log_context *log_ctx, * */ WL_EXPORT struct weston_log_context * -weston_log_ctx_compositor_create(void) +weston_log_ctx_create(void) { struct weston_log_context *log_ctx;