Skip to content

Commit

Permalink
redefine tag_propagation_policy_t for swig's benefit
Browse files Browse the repository at this point in the history
  • Loading branch information
guruofquality committed Aug 30, 2012
1 parent a93c2bf commit e83aaff
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/block_gateway.h
Expand Up @@ -27,6 +27,12 @@
#include <stdexcept> #include <stdexcept>
#include <gr_feval.h> #include <gr_feval.h>


enum tag_propagation_policy_t {
TPP_DONT = 0,
TPP_ALL_TO_ALL = 1,
TPP_ONE_TO_ONE = 2
};

/*! /*!
* Shared message structure between python and gateway. * Shared message structure between python and gateway.
* Each action type represents a scheduler-called function. * Each action type represents a scheduler-called function.
Expand Down Expand Up @@ -147,12 +153,12 @@ class GR_EXTRAS_API block_gateway : virtual public gnuradio::block{
return gnuradio::block::nitems_written(which_output); return gnuradio::block::nitems_written(which_output);
} }


gr_block::tag_propagation_policy_t gr_block__tag_propagation_policy(void){ tag_propagation_policy_t gr_block__tag_propagation_policy(void){
return gnuradio::block::tag_propagation_policy(); return (tag_propagation_policy_t)gnuradio::block::tag_propagation_policy();
} }


void gr_block__set_tag_propagation_policy(gr_block::tag_propagation_policy_t p){ void gr_block__set_tag_propagation_policy(tag_propagation_policy_t p){
return gnuradio::block::set_tag_propagation_policy(p); return gnuradio::block::set_tag_propagation_policy((gr_block::tag_propagation_policy_t)p);
} }


void gr_block__add_item_tag( void gr_block__add_item_tag(
Expand Down

0 comments on commit e83aaff

Please sign in to comment.