1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-12-24 01:21:09 +02:00
ben-wpan/tools/include/usbopen.h
Werner Almesberger 3deac4165e libatrf: new function usb_rescan to force next open_usb to scan tree again
- tools/include/usbopen.h (usb_rescan), tools/lib/usbopen.c (initialized,
  initialize, usb_rescan): usb_rescan forces a re-initialization of
  libusb and a new scan of the USB device tree
2011-05-11 03:22:53 -03:00

28 lines
718 B
C

/*
* lib/usbopen.h - Common USB device lookup and open code
*
* Written 2008-2011 by Werner Almesberger
* Copyright 2008-2011 Werner Almesberger
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef USB_OPEN_H
#define USB_OPEN_H
#include <stdint.h>
#include <usb.h>
usb_dev_handle *open_usb(uint16_t default_vendor, uint16_t default_product);
void usb_rescan(void);
void parse_usb_id(const char *id);
void restrict_usb_path(const char *path);
void usb_unrestrict(void);
#endif /* !USB_OPEN_H */