diff options
author | Bert Vermeulen <bert@biot.com> | 2011-12-15 03:31:31 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-12-28 12:17:13 +0100 |
commit | 1aef2f93a29f01168c04fd0478b29af290d8756b (patch) | |
tree | a82ddaa52862dcb8302d58b9b902f7d38b0b1c57 /sigrokdecode.h | |
parent | e508088229e96423854ba6db63084c9bb18eeb34 (diff) | |
download | libsigrokdecode-1aef2f93a29f01168c04fd0478b29af290d8756b.tar.gz libsigrokdecode-1aef2f93a29f01168c04fd0478b29af290d8756b.zip |
make time/duration work, at least when loading from a session file
PD decode() call now takes 3 arguments: timeoffset, duration, data
as per the current API specification.
Diffstat (limited to 'sigrokdecode.h')
-rw-r--r-- | sigrokdecode.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sigrokdecode.h b/sigrokdecode.h index 053a7a1..6005ad9 100644 --- a/sigrokdecode.h +++ b/sigrokdecode.h @@ -134,7 +134,10 @@ int srd_instance_start(struct srd_decoder_instance *di, const char *driver, int unitsize, uint64_t starttime); 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); +int srd_run_decoder(uint64_t timeoffset, uint64_t duration, + struct srd_decoder_instance *dec, uint8_t *inbuf, uint64_t inbuflen); +int srd_session_feed(uint64_t timeoffset, uint64_t duration, uint8_t *inbuf, + uint64_t inbuflen); int pd_output_new(struct srd_decoder_instance *di, int output_type, char *output_id, char *description); |