diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-03-03 14:13:21 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-03-04 15:10:10 +0100 |
commit | 0082d592076fdc3fe06a760d432a48163ee0bd97 (patch) | |
tree | 6dd8e389390f50801fe604932990ca8788a3fa6b /sigrokdecode.h | |
parent | 41a5d9624022856f4ef357c1fdce041a9774a99c (diff) | |
download | libsigrokdecode-0082d592076fdc3fe06a760d432a48163ee0bd97.tar.gz libsigrokdecode-0082d592076fdc3fe06a760d432a48163ee0bd97.zip |
sr/srd: s/handler/callback/.
We should consistently use the same name for the same thing.
Diffstat (limited to 'sigrokdecode.h')
-rw-r--r-- | sigrokdecode.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sigrokdecode.h b/sigrokdecode.h index 84b1aff..e523a45 100644 --- a/sigrokdecode.h +++ b/sigrokdecode.h @@ -229,13 +229,13 @@ SRD_API char *srd_decoder_doc(struct srd_decoder *dec); /*--- log.c -----------------------------------------------------------------*/ -typedef int (*srd_log_handler_t)(void *cb_data, int loglevel, - const char *format, va_list args); +typedef int (*srd_log_callback_t)(void *cb_data, int loglevel, + const char *format, va_list args); SRD_API int srd_log_loglevel_set(int loglevel); SRD_API int srd_log_loglevel_get(void); -SRD_API int srd_log_handler_set(srd_log_handler_t handler, void *cb_data); -SRD_API int srd_log_handler_set_default(void); +SRD_API int srd_log_callback_set(srd_log_callback_t cb, void *cb_data); +SRD_API int srd_log_callback_set_default(void); SRD_API int srd_log_logdomain_set(const char *logdomain); SRD_API char *srd_log_logdomain_get(void); |