From 43a3ae9a27e2b02e75b6f8f97b49421ff7067e10 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Thu, 12 May 2016 18:52:35 +0100 Subject: [PATCH] comedilib.h: Don't mark 'data' parameter of comedi_data_read_n for SWIG The 'data' parameter (of type lsampl_t*) for comedi_data_read_n(it,subd,chan,range,aref,data,n) is currently marked as an OUTPUT parameter for SWIG, but we can only do that for single objects, and this one points to an array of objects. --- include/comedilib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/comedilib.h b/include/comedilib.h index 2a9e2a8..9bce2a0 100644 --- a/include/comedilib.h +++ b/include/comedilib.h @@ -154,7 +154,7 @@ int comedi_sampl_from_phys(sampl_t *dest,int dst_stride,double *src, int comedi_data_read(comedi_t *it,unsigned int subd,unsigned int chan, unsigned int range,unsigned int aref,lsampl_t *SWIG_OUTPUT(data)); int comedi_data_read_n(comedi_t *it,unsigned int subd,unsigned int chan, - unsigned int range,unsigned int aref,lsampl_t *SWIG_OUTPUT(data), unsigned int n); + unsigned int range,unsigned int aref,lsampl_t *data, unsigned int n); int comedi_data_read_hint(comedi_t *it,unsigned int subd,unsigned int chan, unsigned int range,unsigned int aref); int comedi_data_read_delayed(comedi_t *it,unsigned int subd,unsigned int chan,