From 6547acfda9913a8856e2c875dc3f340570d80583 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Mon, 5 Dec 2011 20:31:32 +1300 Subject: 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. --- sigrokdecode.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sigrokdecode.h') 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); -- cgit v1.2.3-70-g09d2