aboutsummaryrefslogtreecommitdiff
path: root/includes/usb_util.h
diff options
context:
space:
mode:
authorOndrej Čerman <10187350+ocerman@users.noreply.github.com>2018-11-30 13:59:34 +0100
committerLeandro A. F. Pereira <leandro@hardinfo.org>2018-11-30 04:59:34 -0800
commit5c32c60b3b4bb92fbfd5dd8c465c1f38f063660a (patch)
treea72d011c49b090d0f489231f4105d0d3cd904661 /includes/usb_util.h
parentb52f767d80719185a62d959be46ba15fdb8f8f85 (diff)
devices/usb: Add USB interfaces and device icons
* devices/usb: Added support for USB interfaces * devices/usb: added icons for usb devices * tabs -> spaces
Diffstat (limited to 'includes/usb_util.h')
-rw-r--r--includes/usb_util.h14
1 files changed, 14 insertions, 0 deletions
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 *);