diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 03:00:51 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:04 -0800 |
commit | f59ec2043b840a4534fdd61502de59e2571988d5 (patch) | |
tree | fe402dde3d553558dbb4505ecca4f8d6528f7451 /src/helper/log.h | |
parent | 99b57b6dccec1059f746121b9b9ddb11313f708b (diff) |
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.
Diffstat (limited to 'src/helper/log.h')
-rw-r--r-- | src/helper/log.h | 7 |
1 files changed, 3 insertions, 4 deletions
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); |