Ignore:
File:
1 edited

Legend:

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

    r534dee89 r9d58539  
    3636
    3737#include <devman.h>
     38#include <usb/usb.h>
    3839
    39 int usb_resolve_device_handle(const char *, devman_handle_t *);
     40int usb_get_info_by_handle(devman_handle_t,
     41    devman_handle_t *, usb_address_t *, int *);
     42
     43static inline int usb_get_hc_by_handle(devman_handle_t dev, devman_handle_t *hc)
     44{
     45        return usb_get_info_by_handle(dev, hc, NULL, NULL);
     46}
     47
     48static inline int usb_get_address_by_handle(
     49    devman_handle_t dev, usb_address_t *address)
     50{
     51        return usb_get_info_by_handle(dev, NULL, address, NULL);
     52}
     53
     54static inline int usb_get_iface_by_handle(devman_handle_t dev, int *iface)
     55{
     56        return usb_get_info_by_handle(dev, NULL, NULL, iface);
     57}
     58
     59int usb_resolve_device_handle(const char *, devman_handle_t *, usb_address_t *,
     60    devman_handle_t *);
    4061#endif
    4162/**
Note: See TracChangeset for help on using the changeset viewer.