summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rondeau2012-10-02 14:52:07 -0400
committerTom Rondeau2012-10-03 12:26:17 -0400
commit1e528816fd70f3a61d7f00a370cb056f03ceb6a7 (patch)
tree7281e03578456a44f2abb5c3ff1becadccb0409c
parent5fcb7ebd473709fd9e4e99d542f21d3cee5aaf05 (diff)
downloadgnuradio-1e528816fd70f3a61d7f00a370cb056f03ceb6a7.tar.gz
gnuradio-1e528816fd70f3a61d7f00a370cb056f03ceb6a7.tar.bz2
gnuradio-1e528816fd70f3a61d7f00a370cb056f03ceb6a7.zip
core: fixed swig file for exporting max/min buffer sizes with port first.
-rw-r--r--docs/doxygen/other/main_page.dox2
-rw-r--r--gnuradio-core/src/lib/runtime/gr_basic_block.i4
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/doxygen/other/main_page.dox b/docs/doxygen/other/main_page.dox
index f2ab2a436..282682464 100644
--- a/docs/doxygen/other/main_page.dox
+++ b/docs/doxygen/other/main_page.dox
@@ -152,7 +152,7 @@ To set the output buffer size of a block, you simply call:
\code
tb.blk0.set_max_output_buffer(2000)
- tb.blk1.set_max_output_buffer(2000,1)
+ tb.blk1.set_max_output_buffer(1, 2000)
tb.start()
print tb.blk1.max_output_buffer(0)
print tb.blk1.max_output_buffer(1)
diff --git a/gnuradio-core/src/lib/runtime/gr_basic_block.i b/gnuradio-core/src/lib/runtime/gr_basic_block.i
index 848017dd8..7713f2fe1 100644
--- a/gnuradio-core/src/lib/runtime/gr_basic_block.i
+++ b/gnuradio-core/src/lib/runtime/gr_basic_block.i
@@ -44,10 +44,10 @@ public:
bool check_topology (int ninputs, int noutputs);
long max_output_buffer(int i);
void set_max_output_buffer(long max_output_buffer);
- void set_max_output_buffer(long max_output_buffer, int port);
+ void set_max_output_buffer(int port, long max_output_buffer);
long min_output_buffer(int i);
void set_min_output_buffer(long min_output_buffer);
- void set_min_output_buffer(long min_output_buffer, int port);
+ void set_min_output_buffer(int port, long min_output_buffer);
};
%rename(block_ncurrently_allocated) gr_basic_block_ncurrently_allocated;