aboutsummaryrefslogtreecommitdiff
path: root/includes/usb_util.h
diff options
context:
space:
mode:
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 *);