diff options
author | Josh Blum <josh@joshknows.com> | 2011-02-10 14:24:51 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-02-10 14:24:51 -0800 |
commit | 08bad571b7e535bf665aec78d4468dbb231474a7 (patch) | |
tree | 1a3e10137b4c39d0890ebc21340dbdd6ba79dcab /host/lib | |
parent | 1be2590962669f307dce24ccb0b0011b3f3f25f5 (diff) | |
download | uhd-08bad571b7e535bf665aec78d4468dbb231474a7.tar.gz uhd-08bad571b7e535bf665aec78d4468dbb231474a7.tar.bz2 uhd-08bad571b7e535bf665aec78d4468dbb231474a7.zip |
uhd: use ref vector class for the conversion routines I/O
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/convert/convert_common.hpp | 8 | ||||
-rw-r--r-- | host/lib/transport/vrt_packet_handler.hpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/host/lib/convert/convert_common.hpp b/host/lib/convert/convert_common.hpp index c6ba1fcf9..c2ca233d9 100644 --- a/host/lib/convert/convert_common.hpp +++ b/host/lib/convert/convert_common.hpp @@ -25,16 +25,16 @@ #define DECLARE_CONVERTER(fcn, prio) \ static void fcn( \ - uhd::convert::input_type &inputs, \ - uhd::convert::output_type &outputs, \ + const uhd::convert::input_type &inputs, \ + const uhd::convert::output_type &outputs, \ size_t nsamps \ ); \ UHD_STATIC_BLOCK(register_##fcn##_##prio){ \ uhd::convert::register_converter(#fcn, fcn, prio); \ } \ static void fcn( \ - uhd::convert::input_type &inputs, \ - uhd::convert::output_type &outputs, \ + const uhd::convert::input_type &inputs, \ + const uhd::convert::output_type &outputs, \ size_t nsamps \ ) diff --git a/host/lib/transport/vrt_packet_handler.hpp b/host/lib/transport/vrt_packet_handler.hpp index 795d5bc62..6cb70cfac 100644 --- a/host/lib/transport/vrt_packet_handler.hpp +++ b/host/lib/transport/vrt_packet_handler.hpp @@ -68,7 +68,7 @@ template <typename T> UHD_INLINE T get_context_code( size_t size_of_copy_buffs; size_t fragment_offset_in_samps; std::vector<void *> io_buffs; - uhd::convert::input_type otw_buffs; + std::vector<const void *> otw_buffs; recv_state(size_t width = 1): width(width), @@ -309,7 +309,7 @@ template <typename T> UHD_INLINE T get_context_code( const boost::uint64_t zeros; std::vector<const void *> zero_buffs; std::vector<const void *> io_buffs; - uhd::convert::output_type otw_buffs; + std::vector<void *> otw_buffs; send_state(size_t width = 1): next_packet_seq(0), |