On Monday 05 December 2011 16:30:13 Németh Márton wrote: > Add the list subcommand for cable command. This subcommand will list > all the connected cables and helps to find out the description and serial > number when it is more than one device is connected with the same driver.
this doesn't apply against current git, so it'll need to be updated
rather than making it a cable sub-command, can probably use a general "cable
list" like we have with "cable probe"
> --- urjtag-0.10.orig//src/cmd/cable.c
> +++ urjtag-0.10/src/cmd/cable.c
>
> + if (strcasecmp( params[2], "list" ) == 0)
the style is:
func (arg1, arg2)
> + if (!cable) {
> + printf( _("%s(%d) malloc failed!\n"),
> __FILE__,
__LINE__);
> + return 1;
> + }
current git no longer writes to stdout ... we have logging funcs for that
> +static void
> +usbconn_ftd2xx_list(usbconn_cable_t *conn)
> +{
> + FT_STATUS ftStatus;
> + DWORD dwLibraryVer;
> + DWORD dwDriverVer;
> + FT_HANDLE ftHandle;
> + FT_HANDLE ftHandleTemp;
> + DWORD numDevs;
> + DWORD i;
> + DWORD Flags;
> + DWORD ID;
> + DWORD Type;
> + DWORD LocId;
> + char SerialNumber[16];
> + char Description[64];
> + LONG lComPortNumber;
sorry, but we don't use windows types here. you'll have to use the proper
ones. and avoid CamelCase when naming variables.
-mike
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d
_______________________________________________ UrJTAG-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/urjtag-development
