X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Flogic.h;h=739b52e86327caf42f788c46972cf28b680d0926;hp=4b70b8f98bdb8028d09f0744e8db94ce0c81cc5b;hb=caabb84c559023f179bf2c4600a5ebce34eab081;hpb=1b1ec774978b65209ce2b454cbf81da499b797d2 diff --git a/pv/data/logic.h b/pv/data/logic.h index 4b70b8f9..739b52e8 100644 --- a/pv/data/logic.h +++ b/pv/data/logic.h @@ -26,10 +26,6 @@ #include #include -extern "C" { -#include -} - namespace pv { namespace data { @@ -38,7 +34,7 @@ class LogicSnapshot; class Logic : public SignalData { public: - Logic(const sr_datafeed_meta_logic &meta, uint64_t samplerate); + Logic(unsigned int num_probes); int get_num_probes() const; @@ -48,8 +44,10 @@ public: std::deque< boost::shared_ptr >& get_snapshots(); + void clear(); + private: - const int _num_probes; + const unsigned int _num_probes; std::deque< boost::shared_ptr > _snapshots; };