From: Uwe Hermann Date: Wed, 9 Jan 2019 01:47:00 +0000 (+0100) Subject: Avoid underscore suffix in member function names. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=897cb509b78d3693895b665d47d337929aef3334;p=libsigrokflow.git Avoid underscore suffix in member function names. --- diff --git a/include/libsigrokflow/libsigrokflow.hpp b/include/libsigrokflow/libsigrokflow.hpp index baa41f2..c51f963 100644 --- a/include/libsigrokflow/libsigrokflow.hpp +++ b/include/libsigrokflow/libsigrokflow.hpp @@ -103,9 +103,9 @@ private: Glib::RefPtr task_; shared_ptr session_; - void datafeed_callback_(shared_ptr device, + void datafeed_callback(shared_ptr device, shared_ptr packet); - void run_(); + void run(); }; class LegacyInput : @@ -144,7 +144,7 @@ private: Glib::RefPtr sink_pad_; Glib::RefPtr src_pad_; - void datafeed_callback_(shared_ptr device, + void datafeed_callback(shared_ptr device, shared_ptr packet); }; diff --git a/src/legacy_capture_device.cpp b/src/legacy_capture_device.cpp index 1a2cfa8..2930ad5 100644 --- a/src/legacy_capture_device.cpp +++ b/src/legacy_capture_device.cpp @@ -80,7 +80,7 @@ Gst::StateChangeReturn LegacyCaptureDevice::change_state_vfunc(Gst::StateChange 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(); @@ -90,7 +90,7 @@ Gst::StateChangeReturn LegacyCaptureDevice::change_state_vfunc(Gst::StateChange } } -void LegacyCaptureDevice::datafeed_callback_( +void LegacyCaptureDevice::datafeed_callback( shared_ptr device, shared_ptr packet) { @@ -119,11 +119,11 @@ void LegacyCaptureDevice::datafeed_callback_( } } -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(); diff --git a/src/legacy_input.cpp b/src/legacy_input.cpp index c29f127..67d0c9b 100644 --- a/src/legacy_input.cpp +++ b/src/legacy_input.cpp @@ -85,13 +85,13 @@ bool LegacyInput::start_vfunc() 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 device, shared_ptr packet) {