Glib::RefPtr<Gst::Task> task_;
shared_ptr<sigrok::Session> session_;
- void datafeed_callback_(shared_ptr<sigrok::Device> device,
+ void datafeed_callback(shared_ptr<sigrok::Device> device,
shared_ptr<sigrok::Packet> packet);
- void run_();
+ void run();
};
class LegacyInput :
Glib::RefPtr<Gst::Pad> sink_pad_;
Glib::RefPtr<Gst::Pad> src_pad_;
- void datafeed_callback_(shared_ptr<sigrok::Device> device,
+ void datafeed_callback(shared_ptr<sigrok::Device> device,
shared_ptr<sigrok::Packet> packet);
};
case Gst::STATE_CHANGE_READY_TO_PAUSED:
return Gst::StateChangeReturn::STATE_CHANGE_NO_PREROLL;
case Gst::STATE_CHANGE_PAUSED_TO_PLAYING:
- task_ = Gst::Task::create(std::bind(&LegacyCaptureDevice::run_, this));
+ task_ = Gst::Task::create(std::bind(&LegacyCaptureDevice::run, this));
task_->set_lock(mutex_);
src_pad_->set_active(true);
task_->start();
}
}
-void LegacyCaptureDevice::datafeed_callback_(
+void LegacyCaptureDevice::datafeed_callback(
shared_ptr<sigrok::Device> device,
shared_ptr<sigrok::Packet> packet)
{
}
}
-void LegacyCaptureDevice::run_()
+void LegacyCaptureDevice::run()
{
session_ = libsigrok_device_->driver()->parent()->create_session();
session_->add_device(libsigrok_device_);
- session_->add_datafeed_callback(bind(&LegacyCaptureDevice::datafeed_callback_, this, _1, _2));
+ session_->add_datafeed_callback(bind(&LegacyCaptureDevice::datafeed_callback, this, _1, _2));
session_->start();
session_->run();
task_->stop();
auto context = libsigrok_input_format_->parent();
session_ = context->create_session();
session_->add_device(libsigrok_input_->device());
- session_->add_datafeed_callback(bind(&LegacyInput::datafeed_callback_, this, _1, _2));
+ session_->add_datafeed_callback(bind(&LegacyInput::datafeed_callback, this, _1, _2));
session_->start();
return true;
}
-void LegacyInput::datafeed_callback_(
+void LegacyInput::datafeed_callback(
shared_ptr<sigrok::Device> device,
shared_ptr<sigrok::Packet> packet)
{