X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Fsnapshot.h;h=1758d4cddaa7720f35a02449d344b311274cfcc1;hb=38db1a87b23e84068c7f176d5a189564078a6260;hp=7f36ee7886ddaa528633a293701c09cdb94b09de;hpb=1b1ec774978b65209ce2b454cbf81da499b797d2;p=pulseview.git 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);