usb.h (184610) | usb.h (185087) |
---|---|
1/* $FreeBSD: head/lib/libusb20/libusb20_compat01.h 184610 2008-11-04 02:31:03Z alfred $ */ | 1/* $FreeBSD: head/lib/libusb20/libusb20_compat01.h 185087 2008-11-19 08:56:35Z alfred $ */ |
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); |
294char *usb_strerror(void); | 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_ */ | 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_ */ |