diff options
author | Gareth McMullin <gareth@blacksphere.co.nz> | 2011-12-05 20:31:32 +1300 |
---|---|---|
committer | Gareth McMullin <gareth@blacksphere.co.nz> | 2011-12-05 20:31:32 +1300 |
commit | 6547acfda9913a8856e2c875dc3f340570d80583 (patch) | |
tree | 159018a533604e89c3c92b9dfa00e2fea046c928 /sigrokdecode.h | |
parent | 09b0acbb8dd292794e7fc797352cda47c27a1355 (diff) | |
download | libsigrokdecode-6547acfda9913a8856e2c875dc3f340570d80583.tar.gz libsigrokdecode-6547acfda9913a8856e2c875dc3f340570d80583.zip |
srd: Initialise struct members by name. Minor other fixes.
Restored some prototypes in sigrokdecode.h.
Abort sigrok-cli on error while decoding (includes KeyboardInterrupt).
Fixed passing metadata to Decoder.start() method.
Diffstat (limited to 'sigrokdecode.h')
-rw-r--r-- | sigrokdecode.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sigrokdecode.h b/sigrokdecode.h index c1ef9ff..5afb90c 100644 --- a/sigrokdecode.h +++ b/sigrokdecode.h @@ -109,8 +109,9 @@ int srd_instance_set_probe(struct srd_decoder_instance *di, const char *probename, int num); int srd_instance_start(struct srd_decoder_instance *di, const char *driver, int unitsize, uint64_t starttime); -int srd_run_decoder(struct srd_decoder_instance *dec, - uint8_t *inbuf, uint64_t inbuflen); +int srd_session_start(const char *driver, int unitsize, uint64_t starttime, + uint64_t samplerate); +int srd_session_feed(uint8_t *inbuf, uint64_t inbuflen); /* decoder.c */ GSList *srd_list_decoders(void); |