aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/transport')
-rw-r--r--host/lib/transport/buffer_pool.cpp6
-rw-r--r--host/lib/transport/libusb1_base.cpp26
-rw-r--r--host/lib/transport/libusb1_base.hpp14
-rw-r--r--host/lib/transport/libusb1_control.cpp6
-rw-r--r--host/lib/transport/tcp_zero_copy.cpp6
-rw-r--r--host/lib/transport/udp_simple.cpp6
6 files changed, 58 insertions, 6 deletions
diff --git a/host/lib/transport/buffer_pool.cpp b/host/lib/transport/buffer_pool.cpp
index 0fcebecb1..47e30ee44 100644
--- a/host/lib/transport/buffer_pool.cpp
+++ b/host/lib/transport/buffer_pool.cpp
@@ -1,5 +1,5 @@
//
-// Copyright 2011-2011 Ettus Research LLC
+// Copyright 2011,2014 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
@@ -36,6 +36,10 @@ static size_t pad_to_boundary(const size_t bytes, const size_t alignment){
return bytes + (alignment - bytes)%alignment;
}
+buffer_pool::~buffer_pool(void){
+ /* NOP */
+}
+
/***********************************************************************
* Buffer pool implementation
**********************************************************************/
diff --git a/host/lib/transport/libusb1_base.cpp b/host/lib/transport/libusb1_base.cpp
index 23117f128..ee4e20adb 100644
--- a/host/lib/transport/libusb1_base.cpp
+++ b/host/lib/transport/libusb1_base.cpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010-2013 Ettus Research LLC
+// Copyright 2010-2014 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
@@ -35,6 +35,10 @@ using namespace uhd::transport;
/***********************************************************************
* libusb session
**********************************************************************/
+libusb::session::~session(void) {
+ /* NOP */
+}
+
class libusb_session_impl : public libusb::session{
public:
libusb_session_impl(void){
@@ -95,6 +99,10 @@ libusb::session::sptr libusb::session::get_global_session(void){
/***********************************************************************
* libusb device
**********************************************************************/
+libusb::device::~device(void) {
+ /* NOP */
+}
+
class libusb_device_impl : public libusb::device{
public:
libusb_device_impl(libusb_device *dev){
@@ -118,6 +126,10 @@ private:
/***********************************************************************
* libusb device list
**********************************************************************/
+libusb::device_list::~device_list(void){
+ /* NOP */
+}
+
class libusb_device_list_impl : public libusb::device_list{
public:
libusb_device_list_impl(void){
@@ -156,6 +168,10 @@ libusb::device_list::sptr libusb::device_list::make(void){
/***********************************************************************
* libusb device descriptor
**********************************************************************/
+libusb::device_descriptor::~device_descriptor(void){
+ /* NOP */
+}
+
class libusb_device_descriptor_impl : public libusb::device_descriptor{
public:
libusb_device_descriptor_impl(libusb::device::sptr dev){
@@ -207,6 +223,10 @@ libusb::device_descriptor::sptr libusb::device_descriptor::make(device::sptr dev
/***********************************************************************
* libusb device handle
**********************************************************************/
+libusb::device_handle::~device_handle(void){
+ /* NOP */
+}
+
class libusb_device_handle_impl : public libusb::device_handle{
public:
libusb_device_handle_impl(libusb::device::sptr dev){
@@ -271,6 +291,10 @@ libusb::device_handle::sptr libusb::device_handle::get_cached_handle(device::spt
/***********************************************************************
* libusb special handle
**********************************************************************/
+libusb::special_handle::~special_handle(void){
+ /* NOP */
+}
+
class libusb_special_handle_impl : public libusb::special_handle{
public:
libusb_special_handle_impl(libusb::device::sptr dev){
diff --git a/host/lib/transport/libusb1_base.hpp b/host/lib/transport/libusb1_base.hpp
index 7dab07fda..b00946614 100644
--- a/host/lib/transport/libusb1_base.hpp
+++ b/host/lib/transport/libusb1_base.hpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010-2013 Ettus Research LLC
+// Copyright 2010-2014 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
@@ -44,6 +44,8 @@ namespace libusb {
public:
typedef boost::shared_ptr<session> sptr;
+ virtual ~session(void) = 0;
+
/*!
* Level 0: no messages ever printed by the library (default)
* Level 1: error messages are printed to stderr
@@ -67,6 +69,8 @@ namespace libusb {
public:
typedef boost::shared_ptr<device> sptr;
+ virtual ~device(void) = 0;
+
//! get the underlying device pointer
virtual libusb_device *get(void) const = 0;
};
@@ -79,6 +83,8 @@ namespace libusb {
public:
typedef boost::shared_ptr<device_list> sptr;
+ virtual ~device_list(void) = 0;
+
//! make a new device list
static sptr make(void);
@@ -96,6 +102,8 @@ namespace libusb {
public:
typedef boost::shared_ptr<device_descriptor> sptr;
+ virtual ~device_descriptor(void) = 0;
+
//! make a new descriptor from a device reference
static sptr make(device::sptr);
@@ -112,6 +120,8 @@ namespace libusb {
public:
typedef boost::shared_ptr<device_handle> sptr;
+ virtual ~device_handle(void) = 0;
+
//! get a cached handle or make a new one given the device
static sptr get_cached_handle(device::sptr);
@@ -135,6 +145,8 @@ namespace libusb {
public:
typedef boost::shared_ptr<special_handle> sptr;
+ virtual ~special_handle(void) = 0;
+
//! make a new special handle from device
static sptr make(device::sptr);
diff --git a/host/lib/transport/libusb1_control.cpp b/host/lib/transport/libusb1_control.cpp
index c1b8fe6df..00c113163 100644
--- a/host/lib/transport/libusb1_control.cpp
+++ b/host/lib/transport/libusb1_control.cpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010 Ettus Research LLC
+// Copyright 2010,2014 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
@@ -21,6 +21,10 @@
using namespace uhd::transport;
+usb_control::~usb_control(void){
+ /* NOP */
+}
+
/***********************************************************************
* libusb-1.0 implementation of USB control transport
**********************************************************************/
diff --git a/host/lib/transport/tcp_zero_copy.cpp b/host/lib/transport/tcp_zero_copy.cpp
index 402bda1e8..f2ae51695 100644
--- a/host/lib/transport/tcp_zero_copy.cpp
+++ b/host/lib/transport/tcp_zero_copy.cpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010-2013 Ettus Research LLC
+// Copyright 2010-2014 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
@@ -116,6 +116,10 @@ private:
simple_claimer _claimer;
};
+tcp_zero_copy::~tcp_zero_copy(void){
+ /* NOP */
+}
+
/***********************************************************************
* Zero Copy TCP implementation with ASIO:
* This is the portable zero copy implementation for systems
diff --git a/host/lib/transport/udp_simple.cpp b/host/lib/transport/udp_simple.cpp
index d6c55eae7..347373c71 100644
--- a/host/lib/transport/udp_simple.cpp
+++ b/host/lib/transport/udp_simple.cpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010-2011 Ettus Research LLC
+// Copyright 2010-2011,2014 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
@@ -72,6 +72,10 @@ private:
asio::ip::udp::endpoint _recv_endpoint;
};
+udp_simple::~udp_simple(void){
+ /* NOP */
+}
+
/***********************************************************************
* UDP public make functions
**********************************************************************/