summaryrefslogtreecommitdiff
path: root/gr-utils/src/python/modtool/templates.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-utils/src/python/modtool/templates.py')
-rw-r--r--gr-utils/src/python/modtool/templates.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/gr-utils/src/python/modtool/templates.py b/gr-utils/src/python/modtool/templates.py
index 58617336e..878baaadf 100644
--- a/gr-utils/src/python/modtool/templates.py
+++ b/gr-utils/src/python/modtool/templates.py
@@ -136,7 +136,7 @@ namespace gr {
#if $blocktype == 'sink'
#set $outputsig = '0, 0, 0'
#else
-#set $outputsig = '<+MIN_IN+>, <+MAX_IN+>, sizeof (<+float+>)'
+#set $outputsig = '<+MIN_OUT+>, <+MAX_OUT+>, sizeof (<+float+>)'
#end if
/*
* The private constructor
@@ -230,9 +230,10 @@ namespace gr {
*/
class ${modname.upper()}_API $blockname
{
+ public:
${blockname}(${arglist});
~${blockname}();
- private:
+ private:
};
#else
/*!
@@ -496,12 +497,16 @@ gr_modtool help <command> -- Shows the help for a given command. '''
# SWIG string
Templates['swig_block_magic'] = """#if $version == '36'
+#if $blocktype != 'noblock'
GR_SWIG_BLOCK_MAGIC($modname, $blockname);
+#end if
%include "${modname}_${blockname}.h"
#else
%include "${modname}/${blockname}.h"
+#if $blocktype != 'noblock'
GR_SWIG_BLOCK_MAGIC2($modname, $blockname);
#end if
+#end if
"""
## Old stuff