aboutsummaryrefslogtreecommitdiffstats
path: root/swig
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2017-11-03 09:58:13 +0100
committerPiotr Krysik <ptrkrysik@gmail.com>2017-11-03 09:58:13 +0100
commitd32ba5b47170c6f3b49815e8e9ea1c9c3054d7a9 (patch)
tree0fe93fdda9a90de8068a7bd6d6dd8498a8c57826 /swig
parent6e41d06bbfa897f6287ea14ee473683aa3576f5a (diff)
Removed unused (and problematic during SWIG) part of time_spec_t and exposed time_spec_t in the library's ABI
Diffstat (limited to 'swig')
-rw-r--r--swig/grgsm_swig.i22
1 files changed, 22 insertions, 0 deletions
diff --git a/swig/grgsm_swig.i b/swig/grgsm_swig.i
index 56e988d..2743e80 100644
--- a/swig/grgsm_swig.i
+++ b/swig/grgsm_swig.i
@@ -151,5 +151,27 @@ GR_SWIG_BLOCK_MAGIC2(gsm, message_source);
GR_SWIG_BLOCK_MAGIC2(gsm, message_sink);
%include "grgsm/trx_interface/trx.h"
GR_SWIG_BLOCK_MAGIC2(grgsm, trx);
+
+//#pragma SWIG nowarn=319
//%include "grgsm/misc_utils/time_spec.h"
+
+//%extend gr::gsm::time_spec_t{
+// gr::gsm::time_spec_t __add__(const gr::gsm::time_spec_t &what)
+// {
+// gr::gsm::time_spec_t temp = *self;
+// temp += what;
+// return temp;
+// }
+// gr::gsm::time_spec_t __sub__(const gr::gsm::time_spec_t &what)
+// {
+// gr::gsm::time_spec_t temp = *self;
+// temp -= what;
+// return temp;
+// }
+// bool __eq__(const gr::gsm::time_spec_t &what)
+// {
+// return (what == *self);
+// }
+//};
+
%include "grgsm/misc_utils/fn_time.h"