summaryrefslogtreecommitdiff
path: root/grc/blocks
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2012-12-14 13:57:29 -0500
committerTom Rondeau <trondeau@vt.edu>2012-12-14 13:57:29 -0500
commit3910c6da3c62232e6593e5fcfe53f5ece933a294 (patch)
treed3cc80bae32ced851c83f8393d5fea3b57020464 /grc/blocks
parent75b01cc4f55c38dfe5bb329c23df591e43cf4c66 (diff)
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/blocks')
-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 9e5fcb0a21..8f667961e4 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>