]> sigrok.org Git - pulseview.git/blobdiff - pv/sigsession.h
decode: Do not overflow the chunk buffer
[pulseview.git] / pv / sigsession.h
index 980fef947192e2ecb06202400b7d4dc6650ab08c..159724fb5b9c040870a4e678271abf945b7b6204 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the PulseView project.
  *
- * Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
+ * Copyright (C) 2012-14 Joel Holdsworth <joel@airwebreathe.org.uk>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -26,6 +26,7 @@
 #include <boost/thread.hpp>
 
 #include <map>
+#include <set>
 #include <string>
 #include <vector>
 
@@ -46,6 +47,7 @@ class Analog;
 class AnalogSnapshot;
 class Logic;
 class LogicSnapshot;
+class SignalData;
 }
 
 namespace view {
@@ -89,17 +91,19 @@ public:
 
        void stop_capture();
 
+       std::set< boost::shared_ptr<data::SignalData> > get_data() const;
+
        std::vector< boost::shared_ptr<view::Signal> >
                get_signals() const;
 
-       boost::shared_ptr<data::Logic> get_data();
-
+#ifdef ENABLE_DECODE
        bool add_decoder(srd_decoder *const dec);
 
        std::vector< boost::shared_ptr<view::DecodeTrace> >
                get_decode_signals() const;
 
        void remove_decode_signal(view::DecodeTrace *signal);
+#endif
 
 private:
        void set_capture_state(capture_state state);