libftdi Archives

Subject: Re: Outstanding patches for v1.5?

From: Michel Zou <xantares09@xxxxxxxxxxx>
To: "libftdi@xxxxxxxxxxxxxxxxxxxxxxx" <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 2 Oct 2019 08:11:27 +0000
Yes, these are marked as deprecated, Maybe its reasonable to remove them from the Python bindings.
xan

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Sent: Wednesday, October 2, 2019 7:32 AM
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Outstanding patches for v1.5?
 
Hi Xan,

You wrote on Tue, Oct 01, 2019 at 03:30:34PM +0000:
> I just have a cleanup patch here:
>
> diff --git a/python/ftdi1.i b/python/ftdi1.i
> index 8b179f9..db54867 100644
> --- a/python/ftdi1.i
> +++ b/python/ftdi1.i
> @@ -43,6 +43,10 @@ char * str2charp_size(PyObject* pyObj, int * size)
>
>  %rename("%(strip:[ftdi_])s") "";
>
> +%ignore ftdi_usb_purge_rx_buffer;
> +%ignore ftdi_usb_purge_tx_buffer;
> +%ignore ftdi_usb_purge_buffers;
> +
>  %newobject ftdi_new;
>  %typemap(newfree) struct ftdi_context *ftdi "ftdi_free($1);";
>  %delobject ftdi_free;

hmm, wouldn't this remove / skip those three functions
that were previously available to the user?

Cheers,
Thomas

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx  



libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx


Current Thread