Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c6d5f08 in mainline


Ignore:
Timestamp:
2011-12-11T18:31:34Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
fb2ef35
Parents:
ab517f4
Message:

usbinfo: Fix incompatibilities with communication framework.

Location:
uspace/app/usbinfo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/usbinfo/dev.c

    rab517f4 rc6d5f08  
    3434 * Representation of queried device.
    3535 */
    36 #include <usb/dev/pipes.h>
     36#include <usb/dev.h>
     37#include <usb/hc.h>
    3738#include <errno.h>
    3839#include <str_error.h>
     
    5253        bool transfer_started = false;
    5354
    54         rc = usb_device_connection_initialize(&dev->wire, hc_handle, dev_addr);
     55        usb_hc_connection_initialize(&dev->hc_conn, hc_handle);
     56
     57        rc = usb_device_connection_initialize(
     58            &dev->wire, &dev->hc_conn, dev_addr);
    5559        if (rc != EOK) {
    5660                fprintf(stderr,
  • uspace/app/usbinfo/usbinfo.h

    rab517f4 rc6d5f08  
    4444
    4545typedef struct {
     46        usb_hc_connection_t hc_conn;
     47        usb_device_connection_t wire;
    4648        usb_pipe_t ctrl_pipe;
    47         usb_device_connection_t wire;
    4849        usb_standard_device_descriptor_t device_descriptor;
    4950        uint8_t *full_configuration_descriptor;
Note: See TracChangeset for help on using the changeset viewer.