usb.h (203815) | usb.h (213848) |
---|---|
1/* $FreeBSD: head/lib/libusb/usb.h 203815 2010-02-13 09:45:50Z wkoszek $ */ | 1/* $FreeBSD: head/lib/libusb/usb.h 213848 2010-10-14 20:04:36Z hselasky $ */ |
2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 276 unchanged lines hidden (view full) --- 286int usb_control_msg(usb_dev_handle * dev, int requesttype, int request, int value, int index, char *bytes, int size, int timeout); 287int usb_set_configuration(usb_dev_handle * dev, int configuration); 288int usb_claim_interface(usb_dev_handle * dev, int interface); 289int usb_release_interface(usb_dev_handle * dev, int interface); 290int usb_set_altinterface(usb_dev_handle * dev, int alternate); 291int usb_resetep(usb_dev_handle * dev, unsigned int ep); 292int usb_clear_halt(usb_dev_handle * dev, unsigned int ep); 293int usb_reset(usb_dev_handle * dev); | 2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 276 unchanged lines hidden (view full) --- 286int usb_control_msg(usb_dev_handle * dev, int requesttype, int request, int value, int index, char *bytes, int size, int timeout); 287int usb_set_configuration(usb_dev_handle * dev, int configuration); 288int usb_claim_interface(usb_dev_handle * dev, int interface); 289int usb_release_interface(usb_dev_handle * dev, int interface); 290int usb_set_altinterface(usb_dev_handle * dev, int alternate); 291int usb_resetep(usb_dev_handle * dev, unsigned int ep); 292int usb_clear_halt(usb_dev_handle * dev, unsigned int ep); 293int usb_reset(usb_dev_handle * dev); |
294int usb_check_connected(usb_dev_handle * dev); |
|
294const char *usb_strerror(void); 295void usb_init(void); 296void usb_set_debug(int level); 297int usb_find_busses(void); 298int usb_find_devices(void); 299struct usb_device *usb_device(usb_dev_handle * dev); 300struct usb_bus *usb_get_busses(void); 301 302#if 0 303{ /* style */ 304#endif 305#ifdef __cplusplus 306} 307 308#endif 309 310#endif /* _LIBUSB20_COMPAT01_H_ */ | 295const char *usb_strerror(void); 296void usb_init(void); 297void usb_set_debug(int level); 298int usb_find_busses(void); 299int usb_find_devices(void); 300struct usb_device *usb_device(usb_dev_handle * dev); 301struct usb_bus *usb_get_busses(void); 302 303#if 0 304{ /* style */ 305#endif 306#ifdef __cplusplus 307} 308 309#endif 310 311#endif /* _LIBUSB20_COMPAT01_H_ */ |