From d32ba5b47170c6f3b49815e8e9ea1c9c3054d7a9 Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Fri, 3 Nov 2017 09:58:13 +0100 Subject: Removed unused (and problematic during SWIG) part of time_spec_t and exposed time_spec_t in the library's ABI --- swig/grgsm_swig.i | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'swig') 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" -- cgit v1.2.3