summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/copy_impl.h
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-06-24 18:37:19 -0400
committerTom Rondeau <tom@trondeau.com>2014-06-24 18:37:19 -0400
commit9d4d472e93aeb77f3e808499215a2f07d563a83c (patch)
tree4a7f1df3640ff15f3f07bbd2cce3572d9f1a2fa7 /gr-blocks/lib/copy_impl.h
parent9289583ea51b278d3b27ce5aab6384798ac3e02d (diff)
blocks: adding a message port to the copy block to enable/disable copy.
Diffstat (limited to 'gr-blocks/lib/copy_impl.h')
-rw-r--r--gr-blocks/lib/copy_impl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gr-blocks/lib/copy_impl.h b/gr-blocks/lib/copy_impl.h
index 5f3c81a306..925efb2153 100644
--- a/gr-blocks/lib/copy_impl.h
+++ b/gr-blocks/lib/copy_impl.h
@@ -41,6 +41,8 @@ namespace gr {
void forecast(int noutput_items, gr_vector_int &ninput_items_required);
bool check_topology(int ninputs, int noutputs);
+ void handle_enable(pmt::pmt_t msg);
+
void set_enabled(bool enable) { d_enabled = enable; }
bool enabled() const { return d_enabled;}