From: Uwe Hermann Date: Tue, 20 Mar 2012 16:58:25 +0000 (+0100) Subject: srd/cli/qt: s/srd_session_feed/srd_session_send/. X-Git-Tag: libsigrokdecode-0.1.0~29 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=29dad0ac4acd7174cee00556f6104594497fe970;p=libsigrokdecode.git srd/cli/qt: s/srd_session_feed/srd_session_send/. --- diff --git a/controller.c b/controller.c index 5979c34..4ba4de1 100644 --- a/controller.c +++ b/controller.c @@ -740,7 +740,7 @@ SRD_API int srd_session_start(int num_probes, int unitsize, uint64_t samplerate) } /** - * Feed a chunk of logic sample data to a running decoder session. + * Send a chunk of logic sample data to a running decoder session. * * @param start_samplenum The sample number of the first sample in this chunk. * @param inbuf Pointer to sample data. @@ -748,7 +748,7 @@ SRD_API int srd_session_start(int num_probes, int unitsize, uint64_t samplerate) * * @return SRD_OK upon success, a (negative) error code otherwise. */ -SRD_API int srd_session_feed(uint64_t start_samplenum, const uint8_t *inbuf, +SRD_API int srd_session_send(uint64_t start_samplenum, const uint8_t *inbuf, uint64_t inbuflen) { GSList *d; diff --git a/sigrokdecode.h b/sigrokdecode.h index 7e0b550..3f2d3c9 100644 --- a/sigrokdecode.h +++ b/sigrokdecode.h @@ -224,7 +224,7 @@ SRD_API int srd_inst_stack(struct srd_decoder_inst *di_from, SRD_API struct srd_decoder_inst *srd_inst_find_by_id(const char *inst_id); SRD_API int srd_session_start(int num_probes, int unitsize, uint64_t samplerate); -SRD_API int srd_session_feed(uint64_t start_samplenum, const uint8_t *inbuf, +SRD_API int srd_session_send(uint64_t start_samplenum, const uint8_t *inbuf, uint64_t inbuflen); SRD_API int srd_register_callback(int output_type, srd_pd_output_callback_t cb, void *cb_data);