diff options
author | Josh Blum | 2013-02-22 00:39:31 -0800 |
---|---|---|
committer | Josh Blum | 2013-02-22 00:39:31 -0800 |
commit | 875d8fc1a2a1d6fc8bea8e42813a5fd9cd470fc5 (patch) | |
tree | 9274e163123791d95fa4ef93935599af0510c905 /python/gras/GRAS_Block.i | |
parent | 1ebb3a5b0c07db01af2d99c80032d88f3b5c28a3 (diff) | |
download | sandhi-875d8fc1a2a1d6fc8bea8e42813a5fd9cd470fc5.tar.gz sandhi-875d8fc1a2a1d6fc8bea8e42813a5fd9cd470fc5.tar.bz2 sandhi-875d8fc1a2a1d6fc8bea8e42813a5fd9cd470fc5.zip |
gras: rename start/stop to notify interfaces
also moved backwards compat interfaces out
the gnuradio commit is updated for this
Diffstat (limited to 'python/gras/GRAS_Block.i')
-rw-r--r-- | python/gras/GRAS_Block.i | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/python/gras/GRAS_Block.i b/python/gras/GRAS_Block.i index e8df07c..1cf226e 100644 --- a/python/gras/GRAS_Block.i +++ b/python/gras/GRAS_Block.i @@ -8,8 +8,8 @@ %feature("nodirector") gras::BlockPython::input_buffer_allocator; %feature("nodirector") gras::BlockPython::output_buffer_allocator; %feature("nodirector") gras::BlockPython::propagate_tags; -%feature("nodirector") gras::BlockPython::start; -%feature("nodirector") gras::BlockPython::stop; +%feature("nodirector") gras::BlockPython::notify_active; +%feature("nodirector") gras::BlockPython::notify_inactive; %feature("nodirector") gras::BlockPython::notify_topology; %feature("nodirector") gras::BlockPython::work; @@ -101,21 +101,21 @@ struct BlockPython : Block //NOP } - bool start(void) + void notify_active(void) { PyGILPhondler phil; - return this->_Py_start(); + return this->_Py_notify_active(); } - virtual bool _Py_start(void) = 0; + virtual void _Py_notify_active(void) = 0; - bool stop(void) + void notify_inactive(void) { PyGILPhondler phil; - return this->_Py_stop(); + return this->_Py_notify_inactive(); } - virtual bool _Py_stop(void) = 0; + virtual void _Py_notify_inactive(void) = 0; void notify_topology(const size_t num_inputs, const size_t num_outputs) { @@ -257,17 +257,17 @@ class Block(BlockPython): def notify_topology(self, *args): return - def _Py_start(self): - try: return self.start() + def _Py_notify_active(self): + try: return self.notify_active() except: traceback.print_exc(); raise - def start(self): return True + def notify_active(self): pass - def _Py_stop(self): - try: return self.stop() + def _Py_notify_inactive(self): + try: return self.notify_inactive() except: traceback.print_exc(); raise - def stop(self): return True + def notify_inactive(self): pass def _Py_propagate_tags(self, which_input, iter): try: return self.propagate_tags(which_input, iter) |