summaryrefslogtreecommitdiff
path: root/src/lib/gsm.i
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/gsm.i')
-rw-r--r--src/lib/gsm.i36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/lib/gsm.i b/src/lib/gsm.i
new file mode 100644
index 0000000..dac7602
--- /dev/null
+++ b/src/lib/gsm.i
@@ -0,0 +1,36 @@
+/* -*- c++ -*- */
+
+%feature("autodoc", "1"); // generate python docstrings
+
+%include "exception.i"
+%import "gnuradio.i" // the common stuff
+
+%include "gsm_constants.h"
+
+%{
+#include "gnuradio_swig_bug_workaround.h" // mandatory bug fix
+#include "gsm_receiver_cf.h"
+#include <stdexcept>
+#include "gsm_constants.h"
+%}
+
+// ----------------------------------------------------------------
+
+/*
+ * First arg is the package prefix.
+ * Second arg is the name of the class minus the prefix.
+ *
+ * This does some behind-the-scenes magic so we can
+ * access howto_square_ff from python as howto.square_ff
+ */
+GR_SWIG_BLOCK_MAGIC(gsm,receiver_cf);
+
+gsm_receiver_cf_sptr gsm_make_receiver_cf ( gr_feval_dd *tuner, int osr);
+
+class gsm_receiver_cf : public gr_block
+{
+private:
+ gsm_receiver_cf ( gr_feval_dd *tuner, int osr);
+};
+
+// ----------------------------------------------------------------
personal git repositories of Harald Welte. Your mileage may vary