diff options
-rw-r--r-- | include/cubeb/cubeb.h | 2 | ||||
-rw-r--r-- | src/cubeb.c | 6 | ||||
-rw-r--r-- | src/cubeb_log.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/include/cubeb/cubeb.h b/include/cubeb/cubeb.h index 5b63795..cdc0a34 100644 --- a/include/cubeb/cubeb.h +++ b/include/cubeb/cubeb.h @@ -575,7 +575,7 @@ int cubeb_register_device_collection_changed(cubeb * context, invalid pointers, or if level is not in cubeb_log_level. */ int cubeb_set_log_callback(cubeb_log_level log_level, - void * log_callback); + cubeb_log_callback log_callback); #if defined(__cplusplus) } diff --git a/src/cubeb.c b/src/cubeb.c index dc7e5c2..17ad84e 100644 --- a/src/cubeb.c +++ b/src/cubeb.c @@ -17,7 +17,7 @@ #define NELEMS(x) ((int) (sizeof(x) / sizeof(x[0]))) cubeb_log_level g_log_level; -void * g_log_callback; +cubeb_log_callback g_log_callback; struct cubeb { struct cubeb_ops * ops; @@ -446,9 +446,9 @@ int cubeb_register_device_collection_changed(cubeb * context, } int cubeb_set_log_callback(cubeb_log_level log_level, - void * log_callback) + cubeb_log_callback log_callback) { - if (log_level < CUBEB_LOG_DISABLED ||log_level > CUBEB_LOG_VERBOSE) { + if (log_level < CUBEB_LOG_DISABLED || log_level > CUBEB_LOG_VERBOSE) { return CUBEB_ERROR_INVALID_FORMAT; } diff --git a/src/cubeb_log.h b/src/cubeb_log.h index a70269c..1772849 100644 --- a/src/cubeb_log.h +++ b/src/cubeb_log.h @@ -10,8 +10,8 @@ #include <stdio.h> -extern void * g_log_callback; extern cubeb_log_level g_log_level; +extern cubeb_log_callback g_log_callback; #define LOGV(...) do { \ LOG_INTERNAL(CUBEB_LOG_VERBOSE, __VA_ARGS__); \ |