From a7153fecdb1416df03f21467c52dbb35cb675f6f Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 15 Jul 2013 15:20:56 -0700 Subject: uhd: added virtual destructors for several interface classes --- host/include/uhd/stream.hpp | 4 ++++ host/include/uhd/types/serial.hpp | 8 +++++++- host/include/uhd/usrp/dboard_iface.hpp | 4 +++- 3 files changed, 14 insertions(+), 2 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/stream.hpp b/host/include/uhd/stream.hpp index c8ab303ad..c05e8a1e9 100644 --- a/host/include/uhd/stream.hpp +++ b/host/include/uhd/stream.hpp @@ -124,6 +124,8 @@ class UHD_API rx_streamer : boost::noncopyable{ public: typedef boost::shared_ptr sptr; + virtual ~rx_streamer(void); + //! Get the number of channels associated with this streamer virtual size_t get_num_channels(void) const = 0; @@ -181,6 +183,8 @@ class UHD_API tx_streamer : boost::noncopyable{ public: typedef boost::shared_ptr sptr; + virtual ~tx_streamer(void); + //! Get the number of channels associated with this streamer virtual size_t get_num_channels(void) const = 0; diff --git a/host/include/uhd/types/serial.hpp b/host/include/uhd/types/serial.hpp index f66822775..5b69d07f6 100644 --- a/host/include/uhd/types/serial.hpp +++ b/host/include/uhd/types/serial.hpp @@ -1,5 +1,5 @@ // -// Copyright 2010-2011 Ettus Research LLC +// Copyright 2010-2013 Ettus Research LLC // // 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 @@ -46,6 +46,8 @@ namespace uhd{ public: typedef boost::shared_ptr sptr; + virtual ~i2c_iface(void); + /*! * Write bytes over the i2c. * \param addr the address @@ -128,6 +130,8 @@ namespace uhd{ public: typedef boost::shared_ptr sptr; + virtual ~spi_iface(void); + /*! * Perform a spi transaction. * \param which_slave the slave device number @@ -182,6 +186,8 @@ namespace uhd{ public: typedef boost::shared_ptr sptr; + virtual ~uart_iface(void); + /*! * Write to a serial port. * \param buf the data to write diff --git a/host/include/uhd/usrp/dboard_iface.hpp b/host/include/uhd/usrp/dboard_iface.hpp index 6a6a68321..b0f92e2ab 100644 --- a/host/include/uhd/usrp/dboard_iface.hpp +++ b/host/include/uhd/usrp/dboard_iface.hpp @@ -1,5 +1,5 @@ // -// Copyright 2010-2011 Ettus Research LLC +// Copyright 2010-2013 Ettus Research LLC // // 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 @@ -290,6 +290,8 @@ private: protected: dboard_iface(void); +public: + virtual ~dboard_iface(void); }; -- cgit v1.2.3