[PATCH] Add swig hint for devices_t objects

chris at techworks.ie chris at techworks.ie
Mon Aug 6 13:18:57 UTC 2012


From: Christian Gagneraud <chris at techworks.ie>

Signed-off-by: Christian Gagneraud <chris at techworks.ie>
---
 swig/osmosdr_swig.i |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/swig/osmosdr_swig.i b/swig/osmosdr_swig.i
index afdbb0e..4205fd6 100644
--- a/swig/osmosdr_swig.i
+++ b/swig/osmosdr_swig.i
@@ -25,6 +25,7 @@
 %ignore osmosdr::device_t::operator[]; //ignore warnings about %extend
 
 %template(string_string_dict_t) std::map<std::string, std::string>; //define before device
+%template(devices_t)std::vector<osmosdr::device_t>;
 %include <osmosdr_device.h>
 
 %template(range_vector_t) std::vector<osmosdr::range_t>; //define before range
-- 
1.7.7





More information about the osmocom-sdr mailing list