X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fsnapshot.h;h=1758d4cddaa7720f35a02449d344b311274cfcc1;hp=7f36ee7886ddaa528633a293701c09cdb94b09de;hb=619e8bd3c0c2ca5ae059ba2eabdbd3b3f5233d7e;hpb=1b1ec774978b65209ce2b454cbf81da499b797d2 diff --git a/pv/data/snapshot.h b/pv/data/snapshot.h index 7f36ee78..1758d4cd 100644 --- a/pv/data/snapshot.h +++ b/pv/data/snapshot.h @@ -21,9 +21,7 @@ #ifndef PULSEVIEW_PV_DATA_SNAPSHOT_H #define PULSEVIEW_PV_DATA_SNAPSHOT_H -extern "C" { #include -} #include @@ -37,7 +35,9 @@ public: virtual ~Snapshot(); - uint64_t get_sample_count(); + uint64_t get_sample_count() const; + + int unit_size() const; protected: void append_data(void *data, uint64_t samples);