summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/include/gnuradio/block.h
diff options
context:
space:
mode:
authorDavid Sorber <david.sorber@blacklynx.tech>2021-10-18 08:54:12 -0400
committermormj <34754695+mormj@users.noreply.github.com>2021-10-25 11:27:01 -0400
commitd4bd90853f499d5b65a61b3b7bf9ecf50e68bf6b (patch)
treed1bde0753540937bf6678f0cef1734d88ed5f9ce /gnuradio-runtime/include/gnuradio/block.h
parent47c374211221f3c636e0be2238ef233dd353697d (diff)
runtime: replace the DEFINE_CUSTOM_BUFFER_TYPE() macro function with
some advanced template magic; also a few minor type corrections for consistency Signed-off-by: David Sorber <david.sorber@blacklynx.tech>
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/block.h')
-rw-r--r--gnuradio-runtime/include/gnuradio/block.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gnuradio-runtime/include/gnuradio/block.h b/gnuradio-runtime/include/gnuradio/block.h
index 5fd1316951..882a0466a8 100644
--- a/gnuradio-runtime/include/gnuradio/block.h
+++ b/gnuradio-runtime/include/gnuradio/block.h
@@ -540,8 +540,7 @@ public:
* that is incompatible with the default buffer type created by this block.
*
*/
- buffer_sptr
- replace_buffer(uint32_t src_port, uint32_t dst_port, block_sptr block_owner);
+ buffer_sptr replace_buffer(size_t src_port, size_t dst_port, block_sptr block_owner);
// --------------- Performance counter functions -------------
@@ -943,7 +942,7 @@ protected:
* that the downstream max number of items must be passed in to this
* function for consideration.
*/
- buffer_sptr allocate_buffer(int port,
+ buffer_sptr allocate_buffer(size_t port,
int downstream_max_nitems,
uint64_t downstream_lcm_nitems,
uint32_t downstream_max_out_mult);