summaryrefslogtreecommitdiff
path: root/gr-blocks/include/gnuradio
diff options
context:
space:
mode:
authorRuben Undheim <ruben.undheim@gmail.com>2017-04-26 20:15:20 +0000
committerRuben Undheim <ruben.undheim@gmail.com>2017-05-19 18:03:27 +0000
commit7a6dace271a53faccec6d691477e2c5ccc5e9d49 (patch)
treeffab940bd1e7debaa7c321e8ce16a38fa6efd29c /gr-blocks/include/gnuradio
parent0e32fcaf928e8f3f9161a619201d3cf253a46ded (diff)
blocks: file_source ("file_begin" stream tag)
- Add a configurable "file_begin" stream tag which is especially useful in repeat mode. - Added unit tests for new functionality
Diffstat (limited to 'gr-blocks/include/gnuradio')
-rw-r--r--gr-blocks/include/gnuradio/blocks/file_source.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/file_source.h b/gr-blocks/include/gnuradio/blocks/file_source.h
index 5682853a35..bba09ad502 100644
--- a/gr-blocks/include/gnuradio/blocks/file_source.h
+++ b/gr-blocks/include/gnuradio/blocks/file_source.h
@@ -77,6 +77,11 @@ namespace gr {
* \brief Close the file handle.
*/
virtual void close() = 0;
+
+ /*!
+ * \brief Add a stream tag to the first sample of the file if true
+ */
+ virtual void set_begin_tag(bool val) = 0;
};
} /* namespace blocks */