diff options
author | David Sorber <david.sorber@blacklynx.tech> | 2021-10-18 08:54:12 -0400 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-10-25 11:27:01 -0400 |
commit | d4bd90853f499d5b65a61b3b7bf9ecf50e68bf6b (patch) | |
tree | d1bde0753540937bf6678f0cef1734d88ed5f9ce /gnuradio-runtime/include/gnuradio/host_buffer.h | |
parent | 47c374211221f3c636e0be2238ef233dd353697d (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/host_buffer.h')
-rw-r--r-- | gnuradio-runtime/include/gnuradio/host_buffer.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gnuradio-runtime/include/gnuradio/host_buffer.h b/gnuradio-runtime/include/gnuradio/host_buffer.h index ac09cdfe33..d5b7e2230b 100644 --- a/gnuradio-runtime/include/gnuradio/host_buffer.h +++ b/gnuradio-runtime/include/gnuradio/host_buffer.h @@ -23,6 +23,13 @@ public: static buffer_type type; + static buffer_sptr make_buffer(int nitems, + size_t sizeof_item, + uint64_t downstream_lcm_nitems, + uint32_t downstream_max_out_mult, + block_sptr link = block_sptr(), + block_sptr buf_owner = block_sptr()); + virtual ~host_buffer(); /*! @@ -117,10 +124,6 @@ private: block_sptr buf_owner); }; -// See buffer_type.h for details on this macro. It is used here to generate -// compile-time class representing the host_buffer classes "type". -DEFINE_CUSTOM_BUFFER_TYPE(HOST_BUFFER, &host_buffer::make_host_buffer); - } // namespace gr #endif /* INCLUDED_HOST_BUFFER_H */ |