diff options
| author | Ondrej Čerman <10187350+ocerman@users.noreply.github.com> | 2018-11-30 13:59:34 +0100 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2018-11-30 04:59:34 -0800 | 
| commit | 5c32c60b3b4bb92fbfd5dd8c465c1f38f063660a (patch) | |
| tree | a72d011c49b090d0f489231f4105d0d3cd904661 /includes | |
| parent | b52f767d80719185a62d959be46ba15fdb8f8f85 (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')
| -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 *); | 
