]> sigrok.org Git - pulseview.git/commitdiff
Update for libsigrok datafeed callback API changes.
authorMartin Ling <redacted>
Mon, 15 Apr 2013 20:23:39 +0000 (21:23 +0100)
committerBert Vermeulen <redacted>
Tue, 16 Apr 2013 09:37:37 +0000 (11:37 +0200)
pv/sigsession.cpp
pv/sigsession.h

index 94867959f184fcb547b40463e84f97fccbfea5f6..9c03b882ffc9c02cc174be25d3c2f22218a9003c 100644 (file)
@@ -138,7 +138,7 @@ void SigSession::load_thread_proc(const string name,
                return;
        }
 
-       sr_session_datafeed_callback_add(data_feed_in_proc);
+       sr_session_datafeed_callback_add(data_feed_in_proc, NULL);
 
        if (sr_session_start() != SR_OK) {
                error_handler(tr("Failed to start session."));
@@ -161,7 +161,7 @@ void SigSession::sample_thread_proc(struct sr_dev_inst *sdi,
        assert(error_handler);
 
        sr_session_new();
-       sr_session_datafeed_callback_add(data_feed_in_proc);
+       sr_session_datafeed_callback_add(data_feed_in_proc, NULL);
 
        if (sr_session_dev_add(sdi) != SR_OK) {
                error_handler(tr("Failed to use device."));
@@ -387,8 +387,9 @@ void SigSession::data_feed_in(const struct sr_dev_inst *sdi,
 }
 
 void SigSession::data_feed_in_proc(const struct sr_dev_inst *sdi,
-       const struct sr_datafeed_packet *packet)
+       const struct sr_datafeed_packet *packet, void *cb_data)
 {
+       (void) cb_data;
        assert(_session);
        _session->data_feed_in(sdi, packet);
 }
index b2dc467612655e59e1e189f78e813832f9b6bac4..8520a1e7fe5acbbdfcafc0645fd5bce94654a24c 100644 (file)
@@ -102,7 +102,7 @@ private:
                const struct sr_datafeed_packet *packet);
 
        static void data_feed_in_proc(const struct sr_dev_inst *sdi,
-               const struct sr_datafeed_packet *packet);
+               const struct sr_datafeed_packet *packet, void *cb_data);
 
 private:
        mutable boost::mutex _sampling_mutex;