From f59ec2043b840a4534fdd61502de59e2571988d5 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Fri, 13 Nov 2009 03:00:51 -0800 Subject: log_callback_t -> struct log_callback Removes useless and confusing typedef for log callback structure. Types with _t should be suitable for passing by-value as arguments. --- src/helper/log.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/helper/log.h') diff --git a/src/helper/log.h b/src/helper/log.h index aabd1be2..5742897d 100644 --- a/src/helper/log.h +++ b/src/helper/log.h @@ -88,12 +88,11 @@ void log_rethrow(void); typedef void (*log_callback_fn)(void *priv, const char *file, unsigned line, const char *function, const char *string); -typedef struct log_callback_s -{ +struct log_callback { log_callback_fn fn; void *priv; - struct log_callback_s *next; -} log_callback_t; + struct log_callback *next; +}; int log_add_callback(log_callback_fn fn, void *priv); int log_remove_callback(log_callback_fn fn, void *priv); -- cgit v1.2.3