Changeset c24c157d in mainline for uspace/lib/usb/src/resolve.c


Ignore:
Timestamp:
2011-12-12T11:59:35Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1a38701
Parents:
899f1a9
Message:

libusb, libusbdev: Provide generic usb_get_info_by_handle function.

Add separate wrappers for host controller handle, address and interface number.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/resolve.c

    r899f1a9 rc24c157d  
    193193                /* Try to get its address. */
    194194                if (!found_addr) {
    195                         dev_addr = usb_get_address_by_handle(tmp_handle);
    196                         if (dev_addr >= 0) {
     195                        rc = usb_get_address_by_handle(tmp_handle, &dev_addr);
     196                        if (rc == 0) {
    197197                                found_addr = true;
    198198                        }
Note: See TracChangeset for help on using the changeset viewer.