diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/devices.h | 1 | ||||
-rw-r--r-- | includes/usb_util.h | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/includes/devices.h b/includes/devices.h index fe458c23..4cb0d122 100644 --- a/includes/devices.h +++ b/includes/devices.h @@ -86,6 +86,7 @@ extern gchar *sensors; extern gchar *storage_icons; extern gchar *storage_list; extern gchar *usb_list; +extern gchar *usb_icons; extern GHashTable *memlabels; extern GHashTable *_pci_devices; extern GHashTable *sensor_compute; 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 *); |