summaryrefslogtreecommitdiff
path: root/include/gnuradio/gras.hpp
diff options
context:
space:
mode:
authorJosh Blum2012-09-10 01:31:14 -0700
committerJosh Blum2012-09-10 01:31:14 -0700
commit01a9ef2060e34b7cb6e8863e39854c5a0ae80b58 (patch)
tree4419218462b221e523ebc7b7916d5974fdc3a0d3 /include/gnuradio/gras.hpp
parentda20a4f4ca1b314db6d1f45a0018343cc2cc2151 (diff)
downloadsandhi-01a9ef2060e34b7cb6e8863e39854c5a0ae80b58.tar.gz
sandhi-01a9ef2060e34b7cb6e8863e39854c5a0ae80b58.tar.bz2
sandhi-01a9ef2060e34b7cb6e8863e39854c5a0ae80b58.zip
copied tsbe buffer to sbuffer in this project
Diffstat (limited to 'include/gnuradio/gras.hpp')
-rw-r--r--include/gnuradio/gras.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/gnuradio/gras.hpp b/include/gnuradio/gras.hpp
index c8b217c..23aab4c 100644
--- a/include/gnuradio/gras.hpp
+++ b/include/gnuradio/gras.hpp
@@ -19,16 +19,40 @@
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
+#include <boost/intrusive_ptr.hpp>
//this is part of core for now, treat it as such
#include <gr_core_api.h>
#define GRAS_API GR_CORE_API
+#define GRAS_MAX_ALIGNMENT 32
+
namespace gnuradio
{
struct ElementImpl;
+struct SBuffer;
+struct SBufferImpl;
+
+void intrusive_ptr_add_ref(SBufferImpl*);
+void intrusive_ptr_release(SBufferImpl*);
+
+struct Affinity
+{
+ Affinity(void)
+ {
+ value = -1;
+ }
+
+ operator long long(void) const
+ {
+ return value;
+ }
+
+ long long value;
+};
+
} //namespace gnuradio
#endif /*INCLUDED_GNURADIO_GRAS_HPP*/