summaryrefslogtreecommitdiff
path: root/gsmsp/gsm/src/lib/gsm.i
diff options
context:
space:
mode:
Diffstat (limited to 'gsmsp/gsm/src/lib/gsm.i')
-rw-r--r--gsmsp/gsm/src/lib/gsm.i32
1 files changed, 32 insertions, 0 deletions
diff --git a/gsmsp/gsm/src/lib/gsm.i b/gsmsp/gsm/src/lib/gsm.i
new file mode 100644
index 0000000..dc3b5d4
--- /dev/null
+++ b/gsmsp/gsm/src/lib/gsm.i
@@ -0,0 +1,32 @@
+/* -*- c++ -*- */
+
+%feature("autodoc", "1"); // generate python docstrings
+
+%include "exception.i"
+%import "gnuradio.i" // the common stuff
+
+%{
+#include "gnuradio_swig_bug_workaround.h" // mandatory bug fix
+#include "gsm_run_bb.h"
+#include <stdexcept>
+%}
+
+// ----------------------------------------------------------------
+
+/*
+ * 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 gsm_ruN_bb from python as gsm.run_bb
+ */
+GR_SWIG_BLOCK_MAGIC(gsm,run_bb);
+
+gsm_run_bb_sptr gsm_make_run_bb ();
+
+class gsm_run_bb : public gr_block
+{
+private:
+ gsm_run_bb ();
+};
+
personal git repositories of Harald Welte. Your mileage may vary