X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevices%2Fdevice.hpp;h=b4518fbee97091f1365c5589603f7ae6f251cf3f;hp=0a8f2438decc86fd9f592c2b92cdf89ba3f25236;hb=8b2eb22ed4f467f5364e8e9824a12137e2433b7e;hpb=5237f0c50352b523c6a0c3d7f931081ecdbdecaa diff --git a/pv/devices/device.hpp b/pv/devices/device.hpp index 0a8f2438..b4518fbe 100644 --- a/pv/devices/device.hpp +++ b/pv/devices/device.hpp @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #ifndef PULSEVIEW_PV_DEVICES_DEVICE_HPP @@ -39,7 +38,7 @@ namespace devices { class Device { protected: - Device(); + Device() = default; public: virtual ~Device(); @@ -64,7 +63,9 @@ public: virtual std::string display_name( const DeviceManager &device_manager) const = 0; - virtual void create() = 0; + virtual void open() = 0; + + virtual void close() = 0; virtual void start();