From: Joel Holdsworth Date: Thu, 13 Dec 2012 21:30:50 +0000 (+0000) Subject: Make data_feed_in and data_feed_in_proc packet parameter a const pointer X-Git-Tag: pulseview-0.1.0~196 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bc5c1a99be1dbbad5263ce9852f38b5c31ce1c4a;p=pulseview.git Make data_feed_in and data_feed_in_proc packet parameter a const pointer This patch corresponds to bf53457d in libsigrok. --- diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index c8444c7d..42d8e552 100644 --- a/pv/sigsession.cpp +++ b/pv/sigsession.cpp @@ -172,7 +172,7 @@ void SigSession::sample_thread_proc(struct sr_dev_inst *sdi, } void SigSession::data_feed_in(const struct sr_dev_inst *sdi, - struct sr_datafeed_packet *packet) + const struct sr_datafeed_packet *packet) { using view::LogicSignal; @@ -263,7 +263,7 @@ void SigSession::data_feed_in(const struct sr_dev_inst *sdi, } void SigSession::data_feed_in_proc(const struct sr_dev_inst *sdi, - struct sr_datafeed_packet *packet) + const struct sr_datafeed_packet *packet) { assert(_session); _session->data_feed_in(sdi, packet); diff --git a/pv/sigsession.h b/pv/sigsession.h index 68b14e11..259356ee 100644 --- a/pv/sigsession.h +++ b/pv/sigsession.h @@ -82,10 +82,10 @@ private: uint64_t record_length, uint64_t sample_rate); void data_feed_in(const struct sr_dev_inst *sdi, - struct sr_datafeed_packet *packet); + const struct sr_datafeed_packet *packet); static void data_feed_in_proc(const struct sr_dev_inst *sdi, - struct sr_datafeed_packet *packet); + const struct sr_datafeed_packet *packet); private: mutable boost::mutex _state_mutex;