summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-06-01 15:01:01 -0700
committerJosh Blum <josh@joshknows.com>2010-06-01 15:01:01 -0700
commitf78cae4911148470f1b5fbf2ff8ea795250419a1 (patch)
treeceaeeb4e26c1440876222a41382a482a2112e2d2 /host/include
parentbb1eef8cade6e39532919918ce1168c3e62a54df (diff)
parent0b609f776494ecff50c7a2a4d9880d3186fe2421 (diff)
downloaduhd-f78cae4911148470f1b5fbf2ff8ea795250419a1.tar.gz
uhd-f78cae4911148470f1b5fbf2ff8ea795250419a1.tar.bz2
uhd-f78cae4911148470f1b5fbf2ff8ea795250419a1.zip
Merge branch 'buffer' of ettus.sourcerepo.com:ettus/uhdpriv into buffer
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/transport/zero_copy.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/host/include/uhd/transport/zero_copy.hpp b/host/include/uhd/transport/zero_copy.hpp
index 2efabaccf..d6eb89a91 100644
--- a/host/include/uhd/transport/zero_copy.hpp
+++ b/host/include/uhd/transport/zero_copy.hpp
@@ -124,9 +124,28 @@ namespace uhd{ namespace transport{
virtual managed_recv_buffer::sptr get_recv_buff(void) = 0;
/*!
+ * Get the maximum number of receive frames:
+ * The maximum number of valid managed recv buffers,
+ * or the maximum number of frames in the ring buffer,
+ * depending upon the underlying implementation.
+ * \return number of frames
+ */
+ virtual size_t get_num_recv_frames(void) const = 0;
+
+ /*!
* Get a new send buffer from this transport object.
*/
virtual managed_send_buffer::sptr get_send_buff(void) = 0;
+
+ /*!
+ * Get the maximum number of send frames:
+ * The maximum number of valid managed send buffers,
+ * or the maximum number of frames in the ring buffer,
+ * depending upon the underlying implementation.
+ * \return number of frames
+ */
+ virtual size_t get_num_send_frames(void) const = 0;
+
};
/*!