summaryrefslogtreecommitdiff
path: root/src/helper/log.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 03:00:51 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:04 -0800
commitf59ec2043b840a4534fdd61502de59e2571988d5 (patch)
treefe402dde3d553558dbb4505ecca4f8d6528f7451 /src/helper/log.h
parent99b57b6dccec1059f746121b9b9ddb11313f708b (diff)
downloadopenocd+libswd-f59ec2043b840a4534fdd61502de59e2571988d5.tar.gz
openocd+libswd-f59ec2043b840a4534fdd61502de59e2571988d5.tar.bz2
openocd+libswd-f59ec2043b840a4534fdd61502de59e2571988d5.tar.xz
openocd+libswd-f59ec2043b840a4534fdd61502de59e2571988d5.zip
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.h7
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);