u/logging: Change suffix to _func_t

This commit is contained in:
Jakob Bornecrantz 2022-05-11 17:30:17 +01:00 committed by Jakob Bornecrantz
parent aeb11566cd
commit faca646193
2 changed files with 10 additions and 10 deletions

View file

@ -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;

View file

@ -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);
/*!
* @}