From 4564e8e53af85e696a58e43677bae87470c52771 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 21 Feb 2017 22:10:35 +0100 Subject: Clarify that {start,end,cur}_samplenum are absolute numbers. --- libsigrokdecode.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libsigrokdecode.h') diff --git a/libsigrokdecode.h b/libsigrokdecode.h index a2055e2..8d1d5ae 100644 --- a/libsigrokdecode.h +++ b/libsigrokdecode.h @@ -235,10 +235,10 @@ struct srd_decoder_inst { GArray *match_array; /** Absolute start sample number. */ - uint64_t start_samplenum; + uint64_t abs_start_samplenum; /** Absolute end sample number. */ - uint64_t end_samplenum; + uint64_t abs_end_samplenum; /** Pointer to the buffer/chunk of input samples. */ const uint8_t *inbuf; @@ -247,7 +247,7 @@ struct srd_decoder_inst { uint64_t inbuflen; /** Absolute current samplenumber. */ - uint64_t cur_samplenum; + uint64_t abs_cur_samplenum; /** Array of "old" (previous sample) pin values. */ GArray *old_pins_array; @@ -312,7 +312,7 @@ SRD_API int srd_session_start(struct srd_session *sess); SRD_API int srd_session_metadata_set(struct srd_session *sess, int key, GVariant *data); SRD_API int srd_session_send(struct srd_session *sess, - uint64_t start_samplenum, uint64_t end_samplenum, + uint64_t abs_start_samplenum, uint64_t abs_end_samplenum, const uint8_t *inbuf, uint64_t inbuflen, uint64_t unitsize); SRD_API int srd_session_destroy(struct srd_session *sess); SRD_API int srd_pd_output_callback_add(struct srd_session *sess, -- cgit v1.2.3-70-g09d2