diff options
author | Ben Hilburn <ben.hilburn@ettus.com> | 2013-12-13 15:06:46 -0800 |
---|---|---|
committer | Ben Hilburn <ben.hilburn@ettus.com> | 2013-12-13 15:06:46 -0800 |
commit | d80a5b6bea659607b16cd3ece8d248dd8cd788ee (patch) | |
tree | d3f5a27108fd987e60e7bd83098cd2eb8b0c7ec4 /host/include | |
parent | 03a1828944aebea34114634f885fdd46471cd211 (diff) | |
parent | 92b0b7ab6b8fcc795612054a07064351aa969e3a (diff) | |
download | uhd-003_006_002_rc2.tar.gz uhd-003_006_002_rc2.tar.bz2 uhd-003_006_002_rc2.zip |
Merge branch 'master' into next003_006_002_rc2
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/utils/msg_task.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/host/include/uhd/utils/msg_task.hpp b/host/include/uhd/utils/msg_task.hpp index ebb29af08..40ee65cb1 100644 --- a/host/include/uhd/utils/msg_task.hpp +++ b/host/include/uhd/utils/msg_task.hpp @@ -24,14 +24,15 @@ #include <boost/function.hpp> #include <boost/utility.hpp> #include <boost/optional/optional.hpp> +#include <boost/cstdint.hpp> #include <vector> namespace uhd{ class UHD_API msg_task : boost::noncopyable{ public: typedef boost::shared_ptr<msg_task> sptr; - typedef std::vector<uint8_t> msg_payload_t; - typedef std::pair<uint32_t, msg_payload_t > msg_type_t; + typedef std::vector<boost::uint8_t> msg_payload_t; + typedef std::pair<boost::uint32_t, msg_payload_t > msg_type_t; typedef boost::function<boost::optional<msg_type_t>(void)> task_fcn_type; /* @@ -41,9 +42,9 @@ namespace uhd{ */ virtual msg_payload_t get_msg_from_dump_queue(boost::uint32_t sid) = 0; - inline static std::vector<uint8_t> buff_to_vector(uint8_t* p, size_t n) { + inline static std::vector<boost::uint8_t> buff_to_vector(boost::uint8_t* p, size_t n) { if(p and n > 0){ - std::vector<uint8_t> v(n); + std::vector<boost::uint8_t> v(n); memcpy(&v.front(), p, n); return v; } |