diff options
author | Marcus Müller <marcus@hostalia.de> | 2018-07-14 00:23:43 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-07-14 14:41:25 +0200 |
commit | 89736b31397330861dcaa550b7891ce6e7a5536f (patch) | |
tree | 4f70a5bedcd402ea75097b98f5814d7d04944372 /gr-blocks/lib/file_meta_sink_impl.h | |
parent | df8914b8f8714a3606617ceeefb1c7a9e8775845 (diff) |
Changed file_meta_sink's signature to take unserialized pmt
For some reason, the block accepts serialized PMT from in-GNU Radio,
then unserializes it, then serializes it back.
All possible uses probably will prefer just passing the PMT itself.
Changing the API inherently fixes the Py3-migration related std::string
handling ambiguity.
Diffstat (limited to 'gr-blocks/lib/file_meta_sink_impl.h')
-rw-r--r-- | gr-blocks/lib/file_meta_sink_impl.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gr-blocks/lib/file_meta_sink_impl.h b/gr-blocks/lib/file_meta_sink_impl.h index 5e678729b2..b274b3e8ed 100644 --- a/gr-blocks/lib/file_meta_sink_impl.h +++ b/gr-blocks/lib/file_meta_sink_impl.h @@ -66,12 +66,14 @@ namespace gr { bool _open(FILE **fp, const char *filename); public: - file_meta_sink_impl(size_t itemsize, const std::string &filename, - double samp_rate=1, double relative_rate=1, - gr_file_types type=GR_FILE_FLOAT, bool complex=true, - size_t max_segment_size=1000000, - const std::string &extra_dict="", - bool detached_header=false); + file_meta_sink_impl(size_t itemsize, const std::string &filename, + double samp_rate=1, + double relative_rate=1, + gr_file_types type=GR_FILE_FLOAT, + bool complex=true, + size_t max_segment_size=1000000, + pmt::pmt_t extra_dict=pmt::make_dict(), + bool detached_header=false); ~file_meta_sink_impl(); bool open(const std::string &filename); |