X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fsigsession.h;h=7805eec65085ee24d7d2f8917eb09f0eca774172;hb=c0d6d47981e7749319894a82a2400a5f0c0711b8;hp=177e47c9b0ccc1d3cc20385f16b9d5e1e75426d9;hpb=be73bdfa788fcc62bda3187cb1ba04fed2b9d721;p=pulseview.git diff --git a/pv/sigsession.h b/pv/sigsession.h index 177e47c9..7805eec6 100644 --- a/pv/sigsession.h +++ b/pv/sigsession.h @@ -30,9 +30,7 @@ #include -extern "C" { #include -} namespace pv { @@ -66,8 +64,8 @@ public: capture_state get_capture_state() const; - void start_capture(struct sr_dev_inst* sdi, uint64_t record_length, - uint64_t sample_rate); + void start_capture(struct sr_dev_inst* sdi, + uint64_t record_length); void stop_capture(); @@ -85,6 +83,8 @@ private: void sample_thread_proc(struct sr_dev_inst *sdi, uint64_t record_length); + void feed_in_header(const sr_dev_inst *sdi); + void feed_in_meta(const sr_dev_inst *sdi, const sr_datafeed_meta &meta); @@ -101,7 +101,6 @@ private: private: mutable boost::mutex _sampling_mutex; capture_state _capture_state; - uint64_t _sample_rate; mutable boost::mutex _signals_mutex; std::vector< boost::shared_ptr > _signals;