diff options
author | Thomas White <taw@physics.org> | 2020-03-18 14:19:19 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:42:57 +0200 |
commit | 3674c67e06e47ebabe42f9277b7e9212e6a2f87a (patch) | |
tree | 35dad64133b7994387001d49a618ac016f79148d /libcrystfel/src/utils.h | |
parent | fd2c06ea86984102361f0ae3444c0ae8c178069a (diff) |
Add void pointer to log message functions
Also add LogMsgFunc typedef and move functions up in utils.c, because
progress_bar() also needs the stderr_lock.
Diffstat (limited to 'libcrystfel/src/utils.h')
-rw-r--r-- | libcrystfel/src/utils.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcrystfel/src/utils.h b/libcrystfel/src/utils.h index b5f07f26..39ee8848 100644 --- a/libcrystfel/src/utils.h +++ b/libcrystfel/src/utils.h @@ -206,7 +206,10 @@ enum log_msg_type { extern void STATUS(const char *format, ...); extern void ERROR(const char *format, ...); -extern void set_log_message_func(void (*new_log_msg_func)(enum log_msg_type type, const char *)); +typedef void (*LogMsgFunc)(enum log_msg_type type, const char *msg, void *vp); + +extern void set_log_message_func(LogMsgFunc new_log_msg_func, + void *vp); /* ------------------------------ File handling ----------------------------- */ |