summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
authorTom Rondeau2012-12-14 13:57:29 -0500
committerTom Rondeau2012-12-14 13:57:29 -0500
commit3910c6da3c62232e6593e5fcfe53f5ece933a294 (patch)
treed3cc80bae32ced851c83f8393d5fea3b57020464 /grc
parent75b01cc4f55c38dfe5bb329c23df591e43cf4c66 (diff)
downloadgnuradio-3910c6da3c62232e6593e5fcfe53f5ece933a294.tar.gz
gnuradio-3910c6da3c62232e6593e5fcfe53f5ece933a294.tar.bz2
gnuradio-3910c6da3c62232e6593e5fcfe53f5ece933a294.zip
core: adding itemsize key to metadata header to allow for vectorized items.
This also simplifies some code in the source since we're told exactly what the items size is and don't have to infer. Also adds an example using vector items.
Diffstat (limited to 'grc')
-rw-r--r--grc/blocks/gr_file_meta_source.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/grc/blocks/gr_file_meta_source.xml b/grc/blocks/gr_file_meta_source.xml
index 9e5fcb0a2..8f667961e 100644
--- a/grc/blocks/gr_file_meta_source.xml
+++ b/grc/blocks/gr_file_meta_source.xml
@@ -80,9 +80,15 @@
<value></value>
<type>file_open</type>
</param>
+ <param>
+ <name>Vec Length</name>
+ <key>vlen</key>
+ <value>1</value>
+ <type>int</type>
+ </param>
<source>
<name>out</name>
<type>$type</type>
- <vlen>1</vlen>
+ <vlen>$vlen</vlen>
</source>
</block>