revert changed to listUSBDevices, for now it just print to stdout

This commit is contained in:
Manuel Domke
2018-04-21 17:15:28 +02:00
parent 8722282913
commit a566f330c4
6 changed files with 10 additions and 73 deletions

View File

@@ -8,27 +8,7 @@
// We also write this in one go to the Keccak sponge, which is at most 1600 bits
#define BUFLEN 512u
// struct for ftdi_device_descriptor
struct infnoise_device {
uint8_t index;
char *manufacturer;
char *product;
char *serial;
};
struct inm_devlist_node
{
struct infnoise_device *device;
struct inm_devlist_node *next;
};
struct inm_devlist
{
struct inm_devlist_node *head;
};
bool listUSBDevices(struct ftdi_context *ftdic, struct inm_devlist *result, char **message);
bool listUSBDevices(struct ftdi_context *ftdic, char **message);
bool initInfnoise(struct ftdi_context *ftdic, char *serial, char **message, bool debug);