]> sigrok.org Git - pulseview.git/commitdiff
Make data_feed_in and data_feed_in_proc packet parameter a const pointer
authorJoel Holdsworth <redacted>
Thu, 13 Dec 2012 21:30:50 +0000 (21:30 +0000)
committerJoel Holdsworth <redacted>
Thu, 20 Dec 2012 08:01:30 +0000 (08:01 +0000)
This patch corresponds to bf53457d in libsigrok.

pv/sigsession.cpp
pv/sigsession.h

index c8444c7dee8d4ea2e1b00e69e80f33862c1430d2..42d8e5520a379b1de3c024daa144bb6c5649892a 100644 (file)
@@ -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);
index 68b14e11036f491d0acb6b19dad7717271566b4a..259356eef263b655a50c83ddb2da9604ac19cfa2 100644 (file)
@@ -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;