diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-02-02 09:28:56 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-02-02 09:28:56 +0100 |
commit | bb590e071c0f6554695334b5da804c75267541fb (patch) | |
tree | be97e8e90ad4c326c78d5c286e609316f9fcb810 /sigrokdecode.h | |
parent | 7f7ea759ebdc854beb0468b410f7d2382f291a4f (diff) | |
download | libsigrokdecode-bb590e071c0f6554695334b5da804c75267541fb.tar.gz libsigrokdecode-bb590e071c0f6554695334b5da804c75267541fb.zip |
srd: Add explicit srd_pd_output_callback_t typedef.
Diffstat (limited to 'sigrokdecode.h')
-rw-r--r-- | sigrokdecode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sigrokdecode.h b/sigrokdecode.h index 2a78a4d..947e0c0 100644 --- a/sigrokdecode.h +++ b/sigrokdecode.h @@ -198,7 +198,8 @@ int srd_session_start(int num_probes, int unitsize, uint64_t samplerate); int srd_session_feed(uint64_t start_samplenum, uint8_t *inbuf, uint64_t inbuflen); int pd_add(struct srd_decoder_instance *di, int output_type, char *output_id); struct srd_decoder_instance *get_di_by_decobject(void *decobject); -int srd_register_callback(int output_type, void *cb); +typedef void (*srd_pd_output_callback_t)(struct srd_proto_data *pdata); +int srd_register_callback(int output_type, srd_pd_output_callback_t cb); void *srd_find_callback(int output_type); /*--- decoder.c -------------------------------------------------------------*/ |