libftdi Archives

Subject: Re: Any reason not to expose iManufacturer?

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 18 May 2010 13:37:11 +0200
Uwe,

On Monday, 17. May 2010 16:08:03 Uwe Bonnes wrote:
> int ftdi_usb_open_desc_index(struct ftdi_context *ftdi, int vendor,
>     int product, const char* description, const char* serial,
>     unsigned int index)
> 
> doesn't expose and allow a check for the iManufacture String. Any reason
> not to do so? And if it does make sense how to introduce the additional
> call parameter? With another function like
> 
> int ftdi_usb_open_full_index(struct ftdi_context *ftdi, int vendor,
>     int product, const char* manufacturer, const char* description,
>     const char* serial, unsigned int index)
> 
> or by extending the existing call?

Well, I prefer not to break the API/ABI if possible :)
Though we could do that for libftdi-1.0, so I'm fine
if you change the API in libftdi-1.0 and we just
keep the "old" libftdi like it currently is?

Cheers,
Thomas

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

Current Thread