Skip to content
Browse files

redefine tag_propagation_policy_t for swig's benefit

  • Loading branch information...
1 parent a93c2bf commit e83aaffc53716882be450ec6d4f100aa543d9da3 @guruofquality committed Aug 30, 2012
Showing with 10 additions and 4 deletions.
  1. +10 −4 lib/block_gateway.h
View
14 lib/block_gateway.h
@@ -27,6 +27,12 @@
#include <stdexcept>
#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.
* Each action type represents a scheduler-called function.
@@ -147,12 +153,12 @@ class GR_EXTRAS_API block_gateway : virtual public gnuradio::block{
return gnuradio::block::nitems_written(which_output);
}
- gr_block::tag_propagation_policy_t gr_block__tag_propagation_policy(void){
- return gnuradio::block::tag_propagation_policy();
+ tag_propagation_policy_t gr_block__tag_propagation_policy(void){
+ return (tag_propagation_policy_t)gnuradio::block::tag_propagation_policy();
}
- void gr_block__set_tag_propagation_policy(gr_block::tag_propagation_policy_t p){
- return gnuradio::block::set_tag_propagation_policy(p);
+ void gr_block__set_tag_propagation_policy(tag_propagation_policy_t p){
+ return gnuradio::block::set_tag_propagation_policy((gr_block::tag_propagation_policy_t)p);
}
void gr_block__add_item_tag(

0 comments on commit e83aaff

Please sign in to comment.
Something went wrong with that request. Please try again.