From 7a6dace271a53faccec6d691477e2c5ccc5e9d49 Mon Sep 17 00:00:00 2001
From: Ruben Undheim <ruben.undheim@gmail.com>
Date: Wed, 26 Apr 2017 20:15:20 +0000
Subject: 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
---
 gr-blocks/include/gnuradio/blocks/file_source.h | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'gr-blocks/include/gnuradio')

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 */
-- 
cgit v1.2.3