From 563240c2b4efc26e6c4032b0d3d75fc5489b7f1f Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 14 Apr 2013 22:11:30 -0700 Subject: gras: runtime.i export a few more calls from block --- gnuradio-core/src/lib/runtime/runtime.i | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gnuradio-core/src/lib/runtime/runtime.i') diff --git a/gnuradio-core/src/lib/runtime/runtime.i b/gnuradio-core/src/lib/runtime/runtime.i index 2da3f40a4..a172c151d 100644 --- a/gnuradio-core/src/lib/runtime/runtime.i +++ b/gnuradio-core/src/lib/runtime/runtime.i @@ -20,8 +20,15 @@ %ignore gri_agc_cc::reference(); %ignore gri_agc2_ff::reference(); %ignore gri_agc2_cc::reference(); + +//someone forgot about d_detail %ignore gr_block::d_setlock; +//dont export work overloads +%ignore general_work; +%ignore work; +%ignore forecast; + %{ #include @@ -78,6 +85,31 @@ struct gr_block : gras::Block { gr_io_signature_sptr input_signature(void) const; gr_io_signature_sptr output_signature(void) const; + + unsigned history () const; + + int output_multiple () const; + double relative_rate () const; + + bool start(); + bool stop(); + + uint64_t nitems_read(unsigned int which_input); + uint64_t nitems_written(unsigned int which_output); + + // Methods to manage the block's max_noutput_items size. + int max_noutput_items(); + void set_max_noutput_items(int m); + void unset_max_noutput_items(); + bool is_set_max_noutput_items(); + + // Methods to manage block's min/max buffer sizes. + long max_output_buffer(int i); + void set_max_output_buffer(long max_output_buffer); + 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(int port, long min_output_buffer); }; struct gr_sync_block : gr_block{}; struct gr_sync_interpolator : gr_sync_block{}; -- cgit