USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-gaea0e2de
UHD and USRP Manual
zero_copy_flow_ctrl.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2017 Ettus Research
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #ifndef INCLUDED_ZERO_COPY_FLOW_CTRL_HPP
9 #define INCLUDED_ZERO_COPY_FLOW_CTRL_HPP
10 
11 #include <uhd/config.hpp>
13 #include <boost/function.hpp>
14 #include <boost/shared_ptr.hpp>
15 
16 namespace uhd { namespace transport {
17 
23 typedef boost::function<bool(managed_buffer::sptr buff)> flow_ctrl_func;
24 
29 {
30 public:
31  typedef boost::shared_ptr<zero_copy_flow_ctrl> sptr;
32 
41  static sptr make(zero_copy_if::sptr transport,
42  flow_ctrl_func send_flow_ctrl,
43  flow_ctrl_func recv_flow_ctrl);
44 };
45 
46 }} // namespace uhd::transport
47 
48 #endif /* INCLUDED_ZERO_COPY_FLOW_CTRL_HPP */
Definition: zero_copy_flow_ctrl.hpp:28
boost::shared_ptr< zero_copy_if > sptr
Definition: zero_copy.hpp:169
Definition: build_info.hpp:13
boost::function< bool(managed_buffer::sptr buff)> flow_ctrl_func
Definition: zero_copy_flow_ctrl.hpp:23
#define UHD_API
Definition: config.h:68
Definition: zero_copy.hpp:166
boost::shared_ptr< zero_copy_flow_ctrl > sptr
Definition: zero_copy_flow_ctrl.hpp:31