aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/libusb1_base.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-10-31 14:30:52 -0700
committerMartin Braun <martin.braun@ettus.com>2016-11-08 08:02:22 -0800
commit99c2730bc9db270560671f2d7d173768465ed51f (patch)
treebc4df495734a075ebe2f7917cf67dec6fb7d8177 /host/lib/transport/libusb1_base.cpp
parent218f4b0b63927110df9dbbaa8353c346eee2d98a (diff)
downloaduhd-99c2730bc9db270560671f2d7d173768465ed51f.tar.gz
uhd-99c2730bc9db270560671f2d7d173768465ed51f.tar.bz2
uhd-99c2730bc9db270560671f2d7d173768465ed51f.zip
Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types)
- Also removes all references to boost/cstdint.hpp and replaces it with stdint.h (The 'correct' replacement would be <cstdint>, but not all of our compilers support that).
Diffstat (limited to 'host/lib/transport/libusb1_base.cpp')
-rw-r--r--host/lib/transport/libusb1_base.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/host/lib/transport/libusb1_base.cpp b/host/lib/transport/libusb1_base.cpp
index 7b9e11da9..d04b679f8 100644
--- a/host/lib/transport/libusb1_base.cpp
+++ b/host/lib/transport/libusb1_base.cpp
@@ -208,7 +208,7 @@ public:
std::string get_ascii_property(const std::string &what) const
{
- boost::uint8_t off = 0;
+ uint8_t off = 0;
if (what == "serial") off = this->get().iSerialNumber;
if (what == "product") off = this->get().iProduct;
if (what == "manufacturer") off = this->get().iManufacturer;
@@ -227,7 +227,7 @@ public:
std::string string_descriptor((char *)buff, size_t(ret));
byte_vector_t string_vec(string_descriptor.begin(), string_descriptor.end());
std::string out;
- BOOST_FOREACH(boost::uint8_t byte, string_vec){
+ BOOST_FOREACH(uint8_t byte, string_vec){
if (byte < 32 or byte > 127) return out;
out += byte;
}
@@ -363,11 +363,11 @@ public:
return libusb::device_descriptor::make(this->get_device())->get_ascii_property("product");
}
- boost::uint16_t get_vendor_id(void) const{
+ uint16_t get_vendor_id(void) const{
return libusb::device_descriptor::make(this->get_device())->get().idVendor;
}
- boost::uint16_t get_product_id(void) const{
+ uint16_t get_product_id(void) const{
return libusb::device_descriptor::make(this->get_device())->get().idProduct;
}
@@ -397,7 +397,7 @@ usb_device_handle::~usb_device_handle(void) {
}
std::vector<usb_device_handle::sptr> usb_device_handle::get_device_list(
- boost::uint16_t vid, boost::uint16_t pid
+ uint16_t vid, uint16_t pid
){
return usb_device_handle::get_device_list(std::vector<usb_device_handle::vid_pid_pair_t>(1,usb_device_handle::vid_pid_pair_t(vid,pid)));
}