Ignore:
Timestamp:
2013-01-27T13:54:40Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0eb2a0f
Parents:
06f9a9c9
Message:

usb_device: Change API to allow direct(RO) access to descriptors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/include/usb/dev/device.h

    r06f9a9c9 re2dfa86  
    4141#include <usb/dev/pipes.h>
    4242
     43/** Some useful descriptors for USB device. */
     44typedef struct {
     45        /** Standard device descriptor. */
     46        usb_standard_device_descriptor_t device;
     47        /** Full configuration descriptor of current configuration. */
     48        const void *full_config;
     49        size_t full_config_size;
     50} usb_device_descriptors_t;
     51
    4352typedef struct usb_device usb_device_t;
    4453
     
    7079int usb_device_get_iface_number(usb_device_t *);
    7180
    72 const usb_standard_device_descriptor_t *
    73 usb_device_get_device_descriptor(usb_device_t *);
    74 const void * usb_device_get_configuration_descriptor(usb_device_t *, size_t *);
     81const usb_device_descriptors_t * usb_device_descriptors(usb_device_t *);
     82
    7583const usb_alternate_interfaces_t * usb_device_get_alternative_ifaces(
    7684    usb_device_t *);
Note: See TracChangeset for help on using the changeset viewer.