From faca646193eb9092fdb691b886a121b205e71dfc Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 11 May 2022 17:30:17 +0100 Subject: [PATCH] u/logging: Change suffix to _func_t --- src/xrt/auxiliary/util/u_logging.c | 4 ++-- src/xrt/auxiliary/util/u_logging.h | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/xrt/auxiliary/util/u_logging.c b/src/xrt/auxiliary/util/u_logging.c index 5985d7031..853846fd6 100644 --- a/src/xrt/auxiliary/util/u_logging.c +++ b/src/xrt/auxiliary/util/u_logging.c @@ -26,11 +26,11 @@ u_log_get_global_level(void) } // Logging sink global data. -static u_log_sink_function_t g_log_sink_func; +static u_log_sink_func_t g_log_sink_func; static void *g_log_sink_data; void -u_log_set_sink(u_log_sink_function_t func, void *data) +u_log_set_sink(u_log_sink_func_t func, void *data) { g_log_sink_func = func; g_log_sink_data = data; diff --git a/src/xrt/auxiliary/util/u_logging.h b/src/xrt/auxiliary/util/u_logging.h index 3c6b12cf7..e2befd3dc 100644 --- a/src/xrt/auxiliary/util/u_logging.h +++ b/src/xrt/auxiliary/util/u_logging.h @@ -57,13 +57,13 @@ enum u_logging_level * @param args Format parameters. * @param data User data. */ -typedef void (*u_log_sink_function_t)(const char *file, - int line, - const char *func, - enum u_logging_level level, - const char *format, - va_list args, - void *data); +typedef void (*u_log_sink_func_t)(const char *file, + int line, + const char *func, + enum u_logging_level level, + const char *format, + va_list args, + void *data); /*! * For places where you really just want printf, prints a new-line. @@ -190,7 +190,7 @@ u_log_xdev(const char *file, * @param data User data to be passed into @p func. */ void -u_log_set_sink(u_log_sink_function_t func, void *data); +u_log_set_sink(u_log_sink_func_t func, void *data); /*! * @}