summaryrefslogtreecommitdiff
path: root/lib/element_impl.hpp
diff options
context:
space:
mode:
authorJosh Blum2012-08-19 00:33:23 -0700
committerJosh Blum2012-08-26 16:03:50 -0700
commit87be8242fd5855a8e8f6a76fddf40275b711c784 (patch)
tree18700039d8a711815fb06d7f632118e0216b2484 /lib/element_impl.hpp
parent1d23019d422c35ba0a653a31bda2066919243c6c (diff)
downloadsandhi-87be8242fd5855a8e8f6a76fddf40275b711c784.tar.gz
sandhi-87be8242fd5855a8e8f6a76fddf40275b711c784.tar.bz2
sandhi-87be8242fd5855a8e8f6a76fddf40275b711c784.zip
runtime: a lot more is compiling/linking
Diffstat (limited to 'lib/element_impl.hpp')
-rw-r--r--lib/element_impl.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/element_impl.hpp b/lib/element_impl.hpp
index d765f6b..4add1e8 100644
--- a/lib/element_impl.hpp
+++ b/lib/element_impl.hpp
@@ -18,6 +18,7 @@
#define INCLUDED_LIBGNURADIO_ELEMENT_IMPL_HPP
#include <tsbe/block.hpp>
+#include <tsbe/topology.hpp>
#include <gnuradio/element.hpp>
#include <gnuradio/block.hpp>
#include <gr_types.h>
@@ -51,6 +52,8 @@ struct ElementImpl
gr_vector_int work_ninput_items;
Block::InputItems input_items;
Block::OutputItems output_items;
+ std::vector<size_t> produce_items;
+ std::vector<size_t> consume_items;
//tag tracking
std::vector<std::vector<Tag> > input_tags;
@@ -59,10 +62,17 @@ struct ElementImpl
Block::tag_propagation_policy_t tag_prop_policy;
tsbe::Block block;
+ tsbe::Topology topology;
+ const tsbe::Element &get_elem(void)
+ {
+ if (block) return block;
+ return topology;
+ }
void handle_port_msg(const size_t, const tsbe::Wax &);
void topology_update(const tsbe::TaskInterface &);
+ bool enble_fixed_rate;
double relative_rate;
};