From: Joel Holdsworth Date: Sat, 22 Nov 2014 16:02:34 +0000 (+0000) Subject: Session: Renamed pv::SigSession to Session X-Git-Tag: pulseview-0.3.0~431 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2b81ae4682ade4109ffa442794de36ceb32045eb;p=pulseview.git Session: Renamed pv::SigSession to Session --- diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index 5e30faa7..da831e3b 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -59,7 +59,7 @@ const unsigned int DecoderStack::DecodeNotifyPeriod = 65536; mutex DecoderStack::global_decode_mutex_; -DecoderStack::DecoderStack(pv::SigSession &session, +DecoderStack::DecoderStack(pv::Session &session, const srd_decoder *const dec) : session_(session), sample_count_(0), diff --git a/pv/data/decoderstack.hpp b/pv/data/decoderstack.hpp index 979a56fa..e8aeed10 100644 --- a/pv/data/decoderstack.hpp +++ b/pv/data/decoderstack.hpp @@ -50,7 +50,7 @@ struct TwoDecoderStack; namespace pv { -class SigSession; +class Session; namespace view { class LogicSignal; @@ -78,7 +78,7 @@ private: static const unsigned int DecodeNotifyPeriod; public: - DecoderStack(pv::SigSession &session_, + DecoderStack(pv::Session &session_, const srd_decoder *const decoder); virtual ~DecoderStack(); @@ -129,7 +129,7 @@ Q_SIGNALS: void new_decode_data(); private: - pv::SigSession &session_; + pv::Session &session_; /** * This mutex prevents more than one decode operation occuring diff --git a/pv/devicemanager.hpp b/pv/devicemanager.hpp index 823cb2bc..fa116223 100644 --- a/pv/devicemanager.hpp +++ b/pv/devicemanager.hpp @@ -40,7 +40,7 @@ namespace sigrok { namespace pv { -class SigSession; +class Session; class DeviceManager { diff --git a/pv/dialogs/storeprogress.cpp b/pv/dialogs/storeprogress.cpp index 7cc40a75..b041dcdb 100644 --- a/pv/dialogs/storeprogress.cpp +++ b/pv/dialogs/storeprogress.cpp @@ -28,7 +28,7 @@ namespace pv { namespace dialogs { StoreProgress::StoreProgress(const QString &file_name, - const SigSession &session, QWidget *parent) : + const Session &session, QWidget *parent) : QProgressDialog(tr("Saving..."), tr("Cancel"), 0, 0, parent), session_(file_name.toStdString(), session) { diff --git a/pv/dialogs/storeprogress.hpp b/pv/dialogs/storeprogress.hpp index ca14dfb2..92634b42 100644 --- a/pv/dialogs/storeprogress.hpp +++ b/pv/dialogs/storeprogress.hpp @@ -30,7 +30,7 @@ namespace pv { -class SigSession; +class Session; namespace dialogs { @@ -39,7 +39,7 @@ class StoreProgress : public QProgressDialog Q_OBJECT public: - StoreProgress(const QString &file_name, const SigSession &session, + StoreProgress(const QString &file_name, const Session &session, QWidget *parent = 0); virtual ~StoreProgress(); diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 97717b5a..f9aa81df 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -98,13 +98,13 @@ MainWindow::MainWindow(DeviceManager &device_manager, void MainWindow::run_stop() { switch(session_.get_capture_state()) { - case SigSession::Stopped: + case Session::Stopped: session_.start_capture([&](QString message) { session_error("Capture failed", message); }); break; - case SigSession::AwaitingTrigger: - case SigSession::Running: + case Session::AwaitingTrigger: + case Session::Running: session_.stop_capture(); break; } @@ -556,7 +556,7 @@ void MainWindow::add_decoder(srd_decoder *decoder) void MainWindow::capture_state_changed(int state) { - sampling_bar_->set_capture_state((pv::SigSession::capture_state)state); + sampling_bar_->set_capture_state((pv::Session::capture_state)state); } void MainWindow::device_selected() diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index eee1d855..c7859d0a 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -120,7 +120,7 @@ private: DeviceManager &device_manager_; - SigSession session_; + Session session_; pv::view::View *view_; diff --git a/pv/popups/channels.cpp b/pv/popups/channels.cpp index 4598f123..f8061d9a 100644 --- a/pv/popups/channels.cpp +++ b/pv/popups/channels.cpp @@ -53,7 +53,7 @@ using pv::view::Signal; namespace pv { namespace popups { -Channels::Channels(SigSession &session, QWidget *parent) : +Channels::Channels(Session &session, QWidget *parent) : Popup(parent), session_(session), updating_channels_(false), diff --git a/pv/popups/channels.hpp b/pv/popups/channels.hpp index e472fdff..0ebe333f 100644 --- a/pv/popups/channels.hpp +++ b/pv/popups/channels.hpp @@ -41,7 +41,7 @@ namespace sigrok { namespace pv { -class SigSession; +class Session; namespace prop { namespace binding { @@ -60,7 +60,7 @@ class Channels : public pv::widgets::Popup Q_OBJECT public: - Channels(SigSession &session_, QWidget *parent); + Channels(Session &session_, QWidget *parent); private: void set_all_channels(bool set); @@ -81,7 +81,7 @@ private Q_SLOTS: void disable_all_channels(); private: - pv::SigSession &session_; + pv::Session &session_; QFormLayout layout_; diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index 80830214..87ba9afa 100644 --- a/pv/sigsession.cpp +++ b/pv/sigsession.cpp @@ -82,7 +82,7 @@ using Glib::VariantBase; using Glib::Variant; namespace pv { -SigSession::SigSession(DeviceManager &device_manager) : +Session::Session(DeviceManager &device_manager) : device_manager_(device_manager), session_(device_manager.context()->create_session()), capture_state_(Stopped) @@ -90,33 +90,33 @@ SigSession::SigSession(DeviceManager &device_manager) : set_default_device(); } -SigSession::~SigSession() +Session::~Session() { // Stop and join to the thread stop_capture(); } -DeviceManager& SigSession::device_manager() +DeviceManager& Session::device_manager() { return device_manager_; } -const DeviceManager& SigSession::device_manager() const +const DeviceManager& Session::device_manager() const { return device_manager_; } -const shared_ptr& SigSession::session() const +const shared_ptr& Session::session() const { return session_; } -shared_ptr SigSession::device() const +shared_ptr Session::device() const { return device_; } -void SigSession::set_device(shared_ptr device) +void Session::set_device(shared_ptr device) { // Ensure we are not capturing before setting the device stop_capture(); @@ -157,7 +157,7 @@ void SigSession::set_device(shared_ptr device) device_selected(); } -void SigSession::set_file(const string &name) +void Session::set_file(const string &name) { session_ = device_manager_.context()->load_session(name); device_ = session_->devices()[0]; @@ -171,7 +171,7 @@ void SigSession::set_file(const string &name) device_selected(); } -void SigSession::set_default_device() +void Session::set_default_device() { shared_ptr default_device; const list< shared_ptr > &devices = @@ -192,13 +192,13 @@ void SigSession::set_default_device() } } -SigSession::capture_state SigSession::get_capture_state() const +Session::capture_state Session::get_capture_state() const { lock_guard lock(sampling_mutex_); return capture_state_; } -void SigSession::start_capture(function error_handler) +void Session::start_capture(function error_handler) { stop_capture(); @@ -220,11 +220,11 @@ void SigSession::start_capture(function error_handler) // Begin the session sampling_thread_ = std::thread( - &SigSession::sample_thread_proc, this, device_, + &Session::sample_thread_proc, this, device_, error_handler); } -void SigSession::stop_capture() +void Session::stop_capture() { if (get_capture_state() != Stopped) session_->stop(); @@ -234,7 +234,7 @@ void SigSession::stop_capture() sampling_thread_.join(); } -set< shared_ptr > SigSession::get_data() const +set< shared_ptr > Session::get_data() const { shared_lock lock(signals_mutex_); set< shared_ptr > data; @@ -246,18 +246,18 @@ set< shared_ptr > SigSession::get_data() const return data; } -boost::shared_mutex& SigSession::signals_mutex() const +boost::shared_mutex& Session::signals_mutex() const { return signals_mutex_; } -const vector< shared_ptr >& SigSession::signals() const +const vector< shared_ptr >& Session::signals() const { return signals_; } #ifdef ENABLE_DECODE -bool SigSession::add_decoder(srd_decoder *const dec) +bool Session::add_decoder(srd_decoder *const dec) { map > channels; shared_ptr decoder_stack; @@ -313,13 +313,13 @@ bool SigSession::add_decoder(srd_decoder *const dec) return true; } -vector< shared_ptr > SigSession::get_decode_signals() const +vector< shared_ptr > Session::get_decode_signals() const { shared_lock lock(signals_mutex_); return decode_traces_; } -void SigSession::remove_decode_signal(view::DecodeTrace *signal) +void Session::remove_decode_signal(view::DecodeTrace *signal) { for (auto i = decode_traces_.begin(); i != decode_traces_.end(); i++) if ((*i).get() == signal) @@ -331,7 +331,7 @@ void SigSession::remove_decode_signal(view::DecodeTrace *signal) } #endif -void SigSession::set_capture_state(capture_state state) +void Session::set_capture_state(capture_state state) { lock_guard lock(sampling_mutex_); const bool changed = capture_state_ != state; @@ -340,7 +340,7 @@ void SigSession::set_capture_state(capture_state state) capture_state_changed(state); } -void SigSession::update_signals(shared_ptr device) +void Session::update_signals(shared_ptr device) { assert(device); assert(capture_state_ == Stopped); @@ -407,7 +407,7 @@ void SigSession::update_signals(shared_ptr device) signals_changed(); } -shared_ptr SigSession::signal_from_channel( +shared_ptr Session::signal_from_channel( shared_ptr channel) const { lock_guard lock(signals_mutex_); @@ -419,7 +419,7 @@ shared_ptr SigSession::signal_from_channel( return shared_ptr(); } -void SigSession::read_sample_rate(shared_ptr device) +void Session::read_sample_rate(shared_ptr device) { const auto keys = device_->config_keys(ConfigKey::DEVICE_OPTIONS); const auto iter = keys.find(ConfigKey::SAMPLERATE); @@ -436,7 +436,7 @@ void SigSession::read_sample_rate(shared_ptr device) } } -void SigSession::sample_thread_proc(shared_ptr device, +void Session::sample_thread_proc(shared_ptr device, function error_handler) { assert(device); @@ -465,12 +465,12 @@ void SigSession::sample_thread_proc(shared_ptr device, } } -void SigSession::feed_in_header(shared_ptr device) +void Session::feed_in_header(shared_ptr device) { read_sample_rate(device); } -void SigSession::feed_in_meta(shared_ptr device, +void Session::feed_in_meta(shared_ptr device, shared_ptr meta) { (void)device; @@ -489,13 +489,13 @@ void SigSession::feed_in_meta(shared_ptr device, signals_changed(); } -void SigSession::feed_in_frame_begin() +void Session::feed_in_frame_begin() { if (cur_logic_snapshot_ || !cur_analog_snapshots_.empty()) frame_began(); } -void SigSession::feed_in_logic(shared_ptr logic) +void Session::feed_in_logic(shared_ptr logic) { lock_guard lock(data_mutex_); @@ -540,7 +540,7 @@ void SigSession::feed_in_logic(shared_ptr logic) data_received(); } -void SigSession::feed_in_analog(shared_ptr analog) +void Session::feed_in_analog(shared_ptr analog) { lock_guard lock(data_mutex_); @@ -608,7 +608,7 @@ void SigSession::feed_in_analog(shared_ptr analog) data_received(); } -void SigSession::data_feed_in(shared_ptr device, shared_ptr packet) +void Session::data_feed_in(shared_ptr device, shared_ptr packet) { assert(device); assert(packet); diff --git a/pv/sigsession.hpp b/pv/sigsession.hpp index 5f613bf9..c6a317de 100644 --- a/pv/sigsession.hpp +++ b/pv/sigsession.hpp @@ -65,7 +65,7 @@ class LogicSignal; class Signal; } -class SigSession : public QObject +class Session : public QObject { Q_OBJECT @@ -77,9 +77,9 @@ public: }; public: - SigSession(DeviceManager &device_manager); + Session(DeviceManager &device_manager); - ~SigSession(); + ~Session(); DeviceManager& device_manager(); diff --git a/pv/storesession.cpp b/pv/storesession.cpp index 058b46a9..f6fef463 100644 --- a/pv/storesession.cpp +++ b/pv/storesession.cpp @@ -53,7 +53,7 @@ namespace pv { const size_t StoreSession::BlockSize = 1024 * 1024; StoreSession::StoreSession(const std::string &file_name, - const SigSession &session) : + const Session &session) : file_name_(file_name), session_(session), interrupt_(false), diff --git a/pv/storesession.hpp b/pv/storesession.hpp index 8eaddaa6..62cf1895 100644 --- a/pv/storesession.hpp +++ b/pv/storesession.hpp @@ -36,7 +36,7 @@ class Output; namespace pv { -class SigSession; +class Session; namespace data { class LogicSnapshot; @@ -51,7 +51,7 @@ private: public: StoreSession(const std::string &file_name, - const SigSession &session); + const Session &session); ~StoreSession(); @@ -73,7 +73,7 @@ Q_SIGNALS: private: const std::string file_name_; - const SigSession &session_; + const Session &session_; std::shared_ptr output_; diff --git a/pv/toolbars/samplingbar.cpp b/pv/toolbars/samplingbar.cpp index 2002dd23..cddfa5f5 100644 --- a/pv/toolbars/samplingbar.cpp +++ b/pv/toolbars/samplingbar.cpp @@ -56,7 +56,7 @@ const uint64_t SamplingBar::MinSampleCount = 100ULL; const uint64_t SamplingBar::MaxSampleCount = 1000000000000ULL; const uint64_t SamplingBar::DefaultSampleCount = 1000000; -SamplingBar::SamplingBar(SigSession &session, MainWindow &main_window) : +SamplingBar::SamplingBar(Session &session, MainWindow &main_window) : QToolBar("Sampling Bar", &main_window), session_(session), main_window_(main_window), @@ -88,7 +88,7 @@ SamplingBar::SamplingBar(SigSession &session, MainWindow &main_window) : sample_count_.show_min_max_step(0, UINT64_MAX, 1); - set_capture_state(pv::SigSession::Stopped); + set_capture_state(pv::Session::Stopped); configure_button_.setIcon(QIcon::fromTheme("configure", QIcon(":/icons/configure.png"))); @@ -153,11 +153,11 @@ shared_ptr SamplingBar::get_selected_device() const return device_selector_.itemData(index).value>(); } -void SamplingBar::set_capture_state(pv::SigSession::capture_state state) +void SamplingBar::set_capture_state(pv::Session::capture_state state) { const QIcon *icons[] = {&icon_grey_, &icon_red_, &icon_green_}; run_stop_button_.setIcon(*icons[state]); - run_stop_button_.setText((state == pv::SigSession::Stopped) ? + run_stop_button_.setText((state == pv::Session::Stopped) ? tr("Run") : tr("Stop")); run_stop_button_.setShortcut(QKeySequence(Qt::Key_Space)); } diff --git a/pv/toolbars/samplingbar.hpp b/pv/toolbars/samplingbar.hpp index af274311..25ce23ae 100644 --- a/pv/toolbars/samplingbar.hpp +++ b/pv/toolbars/samplingbar.hpp @@ -46,7 +46,7 @@ class QAction; namespace pv { class MainWindow; -class SigSession; +class Session; namespace toolbars { @@ -60,7 +60,7 @@ private: static const uint64_t DefaultSampleCount; public: - SamplingBar(SigSession &session, pv::MainWindow &main_window); + SamplingBar(Session &session, pv::MainWindow &main_window); void set_device_list( const std::list< std::pair, std::string> > &devices, @@ -68,7 +68,7 @@ public: std::shared_ptr get_selected_device() const; - void set_capture_state(pv::SigSession::capture_state state); + void set_capture_state(pv::Session::capture_state state); Q_SIGNALS: void run_stop(); @@ -93,7 +93,7 @@ protected: bool eventFilter(QObject *watched, QEvent *event); private: - SigSession &session_; + Session &session_; MainWindow &main_window_; QComboBox device_selector_; diff --git a/pv/view/analogsignal.cpp b/pv/view/analogsignal.cpp index abbb94c5..8a19cc21 100644 --- a/pv/view/analogsignal.cpp +++ b/pv/view/analogsignal.cpp @@ -53,7 +53,7 @@ const QColor AnalogSignal::SignalColours[4] = { const float AnalogSignal::EnvelopeThreshold = 256.0f; AnalogSignal::AnalogSignal( - pv::SigSession &session, + pv::Session &session, shared_ptr channel, shared_ptr data) : Signal(session, channel), diff --git a/pv/view/analogsignal.hpp b/pv/view/analogsignal.hpp index 91a8e5c2..5295fe32 100644 --- a/pv/view/analogsignal.hpp +++ b/pv/view/analogsignal.hpp @@ -43,7 +43,7 @@ private: static const float EnvelopeThreshold; public: - AnalogSignal(pv::SigSession &session, + AnalogSignal(pv::Session &session, std::shared_ptr channel, std::shared_ptr data); diff --git a/pv/view/decodetrace.cpp b/pv/view/decodetrace.cpp index 6947491a..79058956 100644 --- a/pv/view/decodetrace.cpp +++ b/pv/view/decodetrace.cpp @@ -123,7 +123,7 @@ const QColor DecodeTrace::OutlineColours[16] = { QColor(0x6B, 0x23, 0x37) }; -DecodeTrace::DecodeTrace(pv::SigSession &session, +DecodeTrace::DecodeTrace(pv::Session &session, std::shared_ptr decoder_stack, int index) : Trace(QString::fromUtf8( decoder_stack->stack().front()->decoder()->name)), diff --git a/pv/view/decodetrace.hpp b/pv/view/decodetrace.hpp index 0e2ce146..e3d8d68c 100644 --- a/pv/view/decodetrace.hpp +++ b/pv/view/decodetrace.hpp @@ -39,7 +39,7 @@ class QComboBox; namespace pv { -class SigSession; +class Session; namespace data { class DecoderStack; @@ -82,7 +82,7 @@ private: static const QColor OutlineColours[16]; public: - DecodeTrace(pv::SigSession &session, + DecodeTrace(pv::Session &session, std::shared_ptr decoder_stack, int index); @@ -192,7 +192,7 @@ private Q_SLOTS: void on_show_hide_decoder(int index); private: - pv::SigSession &session_; + pv::Session &session_; std::shared_ptr decoder_stack_; uint64_t decode_start_, decode_end_; diff --git a/pv/view/logicsignal.cpp b/pv/view/logicsignal.cpp index 5beb39df..b3901363 100644 --- a/pv/view/logicsignal.cpp +++ b/pv/view/logicsignal.cpp @@ -82,7 +82,7 @@ const QColor LogicSignal::SignalColours[10] = { }; LogicSignal::LogicSignal( - pv::SigSession &session, + pv::Session &session, shared_ptr device, shared_ptr channel, shared_ptr data) : diff --git a/pv/view/logicsignal.hpp b/pv/view/logicsignal.hpp index a4f64e6b..0d422d7c 100644 --- a/pv/view/logicsignal.hpp +++ b/pv/view/logicsignal.hpp @@ -57,7 +57,7 @@ private: static const QColor SignalColours[10]; public: - LogicSignal(pv::SigSession &session, + LogicSignal(pv::Session &session, std::shared_ptr device, std::shared_ptr channel, std::shared_ptr data); diff --git a/pv/view/rowitemowner.hpp b/pv/view/rowitemowner.hpp index 8c63aa56..10d6e99b 100644 --- a/pv/view/rowitemowner.hpp +++ b/pv/view/rowitemowner.hpp @@ -28,7 +28,7 @@ namespace pv { -class SigSession; +class Session; namespace view { @@ -46,12 +46,12 @@ public: /** * Returns the session of the onwer. */ - virtual pv::SigSession& session() = 0; + virtual pv::Session& session() = 0; /** * Returns the session of the owner. */ - virtual const pv::SigSession& session() const = 0; + virtual const pv::Session& session() const = 0; /** * Returns the view of the owner. diff --git a/pv/view/signal.cpp b/pv/view/signal.cpp index 35e1cdbf..767896f2 100644 --- a/pv/view/signal.cpp +++ b/pv/view/signal.cpp @@ -58,7 +58,7 @@ const char *const ChannelNames[] = { "SCL" }; -Signal::Signal(pv::SigSession &session, +Signal::Signal(pv::Session &session, std::shared_ptr channel) : Trace(channel->name().c_str()), session_(session), diff --git a/pv/view/signal.hpp b/pv/view/signal.hpp index dd3af0b3..910b2e69 100644 --- a/pv/view/signal.hpp +++ b/pv/view/signal.hpp @@ -36,7 +36,7 @@ namespace sigrok { namespace pv { -class SigSession; +class Session; namespace data { class SignalData; @@ -49,7 +49,7 @@ class Signal : public Trace Q_OBJECT protected: - Signal(pv::SigSession &session, + Signal(pv::Session &session, std::shared_ptr channel); public: @@ -79,7 +79,7 @@ private Q_SLOTS: void on_disable(); protected: - pv::SigSession &session_; + pv::Session &session_; std::shared_ptr channel_; QComboBox *name_widget_; diff --git a/pv/view/tracegroup.cpp b/pv/view/tracegroup.cpp index 665b4ad1..272fc1a1 100644 --- a/pv/view/tracegroup.cpp +++ b/pv/view/tracegroup.cpp @@ -52,13 +52,13 @@ bool TraceGroup::enabled() const [](const shared_ptr &r) { return r->enabled(); }); } -pv::SigSession& TraceGroup::session() +pv::Session& TraceGroup::session() { assert(owner_); return owner_->session(); } -const pv::SigSession& TraceGroup::session() const +const pv::Session& TraceGroup::session() const { assert(owner_); return owner_->session(); diff --git a/pv/view/tracegroup.hpp b/pv/view/tracegroup.hpp index 960a15d9..f89ea437 100644 --- a/pv/view/tracegroup.hpp +++ b/pv/view/tracegroup.hpp @@ -51,12 +51,12 @@ public: /** * Returns the session of the onwer. */ - pv::SigSession& session(); + pv::Session& session(); /** * Returns the session of the onwer. */ - const pv::SigSession& session() const; + const pv::Session& session() const; /** * Returns the view of the owner. diff --git a/pv/view/view.cpp b/pv/view/view.cpp index d621e714..c9606353 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -79,7 +79,7 @@ const QColor View::CursorAreaColour(220, 231, 243); const QSizeF View::LabelPadding(4, 0); -View::View(SigSession &session, QWidget *parent) : +View::View(Session &session, QWidget *parent) : QAbstractScrollArea(parent), session_(session), viewport_(new Viewport(*this)), @@ -149,12 +149,12 @@ View::View(SigSession &session, QWidget *parent) : header_->raise(); } -SigSession& View::session() +Session& View::session() { return session_; } -const SigSession& View::session() const +const Session& View::session() const { return session_; } diff --git a/pv/view/view.hpp b/pv/view/view.hpp index c6e585b7..e763da7e 100644 --- a/pv/view/view.hpp +++ b/pv/view/view.hpp @@ -39,7 +39,7 @@ namespace pv { -class SigSession; +class Session; namespace view { @@ -69,10 +69,10 @@ public: static const QSizeF LabelPadding; public: - explicit View(SigSession &session, QWidget *parent = 0); + explicit View(Session &session, QWidget *parent = 0); - SigSession& session(); - const SigSession& session() const; + Session& session(); + const Session& session() const; /** * Returns the view of the owner. @@ -236,7 +236,7 @@ private Q_SLOTS: void on_hover_point_changed(); private: - SigSession &session_; + Session &session_; Viewport *viewport_; Ruler *ruler_; diff --git a/pv/view/viewport.hpp b/pv/view/viewport.hpp index 1171a707..07bfcad9 100644 --- a/pv/view/viewport.hpp +++ b/pv/view/viewport.hpp @@ -27,7 +27,7 @@ class QPainter; class QPaintEvent; -class SigSession; +class Session; namespace pv { namespace view { diff --git a/test/data/decoderstack.cpp b/test/data/decoderstack.cpp index 09f047d5..baeec2d6 100644 --- a/test/data/decoderstack.cpp +++ b/test/data/decoderstack.cpp @@ -49,7 +49,7 @@ BOOST_AUTO_TEST_CASE(TwoDecoderStack) { pv::DeviceManager dm(ctx); - pv::SigSession ss(dm); + pv::Session ss(dm); const GSList *l = srd_decoder_list(); BOOST_REQUIRE(l);