projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
main window: Prefer the user specified device in new sessions
[pulseview.git]
/
pv
/
session.hpp
diff --git
a/pv/session.hpp
b/pv/session.hpp
index 4ac7f509b516dcf18b4738753b1dd5038041f6ec..c4f2bed83324779c0593b9d05635c9288c188f32 100644
(file)
--- a/
pv/session.hpp
+++ b/
pv/session.hpp
@@
-29,13
+29,6
@@
#include <unordered_set>
#include <vector>
#include <unordered_set>
#include <vector>
-#ifdef _WIN32
-// Windows: Avoid boost/thread namespace pollution (which includes windows.h).
-#define NOGDI
-#define NORESOURCE
-#endif
-#include <boost/thread/shared_mutex.hpp>
-
#include <QObject>
#include <QSettings>
#include <QString>
#include <QObject>
#include <QSettings>
#include <QString>
@@
-62,10
+55,13
@@
class Device;
class InputFormat;
class Logic;
class Meta;
class InputFormat;
class Logic;
class Meta;
+class Option;
class OutputFormat;
class Packet;
class Session;
class OutputFormat;
class Packet;
class Session;
-}
+} // namespace sigrok
+
+using sigrok::Option;
namespace pv {
namespace pv {
@@
-170,8
+166,7
@@
public:
bool has_view(shared_ptr<views::ViewBase> view);
bool has_view(shared_ptr<views::ViewBase> view);
- const unordered_set< shared_ptr<data::SignalBase> >
- signalbases() const;
+ const unordered_set< shared_ptr<data::SignalBase> > signalbases() const;
#ifdef ENABLE_DECODE
bool add_decoder(srd_decoder *const dec);
#ifdef ENABLE_DECODE
bool add_decoder(srd_decoder *const dec);
@@
-187,6
+182,10
@@
private:
shared_ptr<data::SignalBase> signalbase_from_channel(
shared_ptr<sigrok::Channel> channel) const;
shared_ptr<data::SignalBase> signalbase_from_channel(
shared_ptr<sigrok::Channel> channel) const;
+ static map<string, Glib::VariantBase> input_format_options(
+ vector<string> user_spec,
+ map<string, shared_ptr<Option>> fmt_opts);
+
private:
void sample_thread_proc(function<void (const QString)> error_handler);
private:
void sample_thread_proc(function<void (const QString)> error_handler);