diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-05-03 22:45:50 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-05-03 22:52:54 +0200 |
commit | 2372b1998ae5d252433d7a7a07744ba2ea81b96e (patch) | |
tree | 82ec473b82266c79c249f28c8d503b3757d9a088 /libsigrokdecode.h | |
parent | 5cdc02d4a6947966135aada5f3dcaccfd3e94413 (diff) | |
download | libsigrokdecode-2372b1998ae5d252433d7a7a07744ba2ea81b96e.tar.gz libsigrokdecode-2372b1998ae5d252433d7a7a07744ba2ea81b96e.zip |
Don't define names ending with _t (POSIX reserved).
Avoid defining any names ending in _t, those are generally reserved
for POSIX usage. For details see:
http://pubs.opengroup.org/onlinepubs/007904975/functions/xsh_chap02_02.html
http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html
Diffstat (limited to 'libsigrokdecode.h')
-rw-r--r-- | libsigrokdecode.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libsigrokdecode.h b/libsigrokdecode.h index 4476f79..db06d43 100644 --- a/libsigrokdecode.h +++ b/libsigrokdecode.h @@ -258,12 +258,12 @@ struct srd_proto_data_binary { const unsigned char *data; }; -typedef void (*srd_pd_output_callback_t)(struct srd_proto_data *pdata, - void *cb_data); +typedef void (*srd_pd_output_callback)(struct srd_proto_data *pdata, + void *cb_data); struct srd_pd_callback { int output_type; - srd_pd_output_callback_t cb; + srd_pd_output_callback cb; void *cb_data; }; @@ -298,7 +298,7 @@ SRD_API int srd_session_send(struct srd_session *sess, const uint8_t *inbuf, uint64_t inbuflen); SRD_API int srd_session_destroy(struct srd_session *sess); SRD_API int srd_pd_output_callback_add(struct srd_session *sess, - int output_type, srd_pd_output_callback_t cb, void *cb_data); + int output_type, srd_pd_output_callback cb, void *cb_data); /* decoder.c */ SRD_API const GSList *srd_decoder_list(void); @@ -322,11 +322,11 @@ SRD_API struct srd_decoder_inst *srd_inst_find_by_id(struct srd_session *sess, const char *inst_id); /* log.c */ -typedef int (*srd_log_callback_t)(void *cb_data, int loglevel, +typedef int (*srd_log_callback)(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_callback_set(srd_log_callback_t cb, void *cb_data); +SRD_API int srd_log_callback_set(srd_log_callback 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); |