]> sigrok.org Git - pulseview.git/blobdiff - pv/data/snapshot.h
Added Snapshot::unit_size
[pulseview.git] / pv / data / snapshot.h
index 7f36ee7886ddaa528633a293701c09cdb94b09de..1758d4cddaa7720f35a02449d344b311274cfcc1 100644 (file)
@@ -21,9 +21,7 @@
 #ifndef PULSEVIEW_PV_DATA_SNAPSHOT_H
 #define PULSEVIEW_PV_DATA_SNAPSHOT_H
 
-extern "C" {
 #include <libsigrok/libsigrok.h>
-}
 
 #include <boost/thread.hpp>
 
@@ -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);