From 5c32c60b3b4bb92fbfd5dd8c465c1f38f063660a Mon Sep 17 00:00:00 2001 From: Ondrej Čerman <10187350+ocerman@users.noreply.github.com> Date: Fri, 30 Nov 2018 13:59:34 +0100 Subject: devices/usb: Add USB interfaces and device icons * devices/usb: Added support for USB interfaces * devices/usb: added icons for usb devices * tabs -> spaces --- includes/usb_util.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'includes/usb_util.h') diff --git a/includes/usb_util.h b/includes/usb_util.h index e9130b99..5f7ba47c 100644 --- a/includes/usb_util.h +++ b/includes/usb_util.h @@ -39,10 +39,24 @@ typedef struct usbd { int speed_mbs; /* TODO: */ gboolean user_scan; /* not scanned as root */ + struct usbi *if_list; struct usbd *next; } usbd; +/* another linked list */ +typedef struct usbi { + int if_number; + int if_class; + int if_subclass; + int if_protocol; + char *if_class_str; + char *if_subclass_str; + char *if_protocol_str; + + struct usbi *next; +} usbi; + usbd *usb_get_device_list(); int usbd_list_count(usbd *); void usbd_list_free(usbd *); -- cgit v1.2.3