projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.gitignore: Ignore QtCreator generated files.
[pulseview.git]
/
pv
/
data
/
snapshot.h
diff --git
a/pv/data/snapshot.h
b/pv/data/snapshot.h
index e4b9c0e812aaf7a7e0b3722d26a352997d02180b..48879991fbbcc7d4af1d197ea68accba72512699 100644
(file)
--- a/
pv/data/snapshot.h
+++ b/
pv/data/snapshot.h
@@
-21,8
+21,6
@@
#ifndef PULSEVIEW_PV_DATA_SNAPSHOT_H
#define PULSEVIEW_PV_DATA_SNAPSHOT_H
#ifndef PULSEVIEW_PV_DATA_SNAPSHOT_H
#define PULSEVIEW_PV_DATA_SNAPSHOT_H
-#include <libsigrok/libsigrok.h>
-
#include <thread>
#include <mutex>
#include <vector>
#include <thread>
#include <mutex>
#include <vector>
@@
-33,13
+31,13
@@
namespace data {
class Snapshot
{
public:
class Snapshot
{
public:
- Snapshot(int unit_size);
+ Snapshot(
unsigned
int unit_size);
virtual ~Snapshot();
uint64_t get_sample_count() const;
virtual ~Snapshot();
uint64_t get_sample_count() const;
- int unit_size() const;
+
unsigned
int unit_size() const;
/**
* @brief Increase the capacity of the snapshot.
/**
* @brief Increase the capacity of the snapshot.
@@
-76,7
+74,7
@@
protected:
std::vector<uint8_t> _data;
uint64_t _sample_count;
uint64_t _capacity;
std::vector<uint8_t> _data;
uint64_t _sample_count;
uint64_t _capacity;
- int _unit_size;
+
unsigned
int _unit_size;
};
} // namespace data
};
} // namespace data