commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/07: blocks: Added updating callback for


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/07: blocks: Added updating callback for Tag Object and Vector Source
Date: Mon, 21 Sep 2015 04:44:36 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit e36c64618d6a18fc41ba587e648201320fcb2a7f
Author: Paul David <address@hidden>
Date:   Tue Sep 15 23:12:36 2015 -0400

    blocks: Added updating callback for Tag Object and Vector Source
---
 gr-blocks/grc/blocks_tag_object.xml      | 6 +-----
 gr-blocks/grc/blocks_vector_source_x.xml | 2 +-
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/gr-blocks/grc/blocks_tag_object.xml 
b/gr-blocks/grc/blocks_tag_object.xml
index d2ef9fc..7352d80 100644
--- a/gr-blocks/grc/blocks_tag_object.xml
+++ b/gr-blocks/grc/blocks_tag_object.xml
@@ -10,35 +10,31 @@
   <import>import pmt</import>
   <var_make>self.$(id) = $(id) = gr.tag_utils.python_to_tag(($offset, $key, 
$value, $src))</var_make>
   <make></make>
-
+  <callback>self.set_$(id)(gr.tag_utils.python_to_tag(($offset, $key, $value, 
$src)))</callback>
   <param>
     <name>Offset</name>
     <key>offset</key>
     <value>0</value>
     <type>int</type>
   </param>
-
   <param>
     <name>Key</name>
     <key>key</key>
     <value>pmt.intern("key")</value>
     <type>raw</type>
   </param>
-
   <param>
     <name>Value</name>
     <key>value</key>
     <value>pmt.intern("value")</value>
     <type>raw</type>
   </param>
-
   <param>
     <name>Source ID</name>
     <key>src</key>
     <value>pmt.intern("src")</value>
     <type>raw</type>
   </param>
-
   <doc>
     This block creates a tag object. While tags are based on an
     absolute offset, this is based on a relative offset that must be
diff --git a/gr-blocks/grc/blocks_vector_source_x.xml 
b/gr-blocks/grc/blocks_vector_source_x.xml
index c871497..0417baa 100644
--- a/gr-blocks/grc/blocks_vector_source_x.xml
+++ b/gr-blocks/grc/blocks_vector_source_x.xml
@@ -9,7 +9,7 @@
        <key>blocks_vector_source_x</key>
        <import>from gnuradio import blocks</import>
        <make>blocks.vector_source_$(type.fcn)($vector, $repeat, $vlen, 
$tags)</make>
-       <callback>set_data($vector)</callback>
+       <callback>set_data($vector, $tags)</callback>
        <param>
                <name>Output Type</name>
                <key>type</key>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]