libusb.h (302080) | libusb.h (302125) |
---|---|
1/* $FreeBSD: head/lib/libusb/libusb.h 302080 2016-06-22 10:38:41Z hselasky $ */ | 1/* $FreeBSD: head/lib/libusb/libusb.h 302125 2016-06-23 07:12:22Z hselasky $ */ |
2/*- 3 * Copyright (c) 2009 Sylvestre Gallon. 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. --- 546 unchanged lines hidden (view full) --- 556/* Hotplug support */ 557 558typedef int (*libusb_hotplug_callback_fn)(libusb_context *ctx, 559 libusb_device *device, libusb_hotplug_event event, void *user_data); 560 561int libusb_hotplug_register_callback(libusb_context *ctx, libusb_hotplug_event events, libusb_hotplug_flag flags, int vendor_id, int product_id, int dev_class, libusb_hotplug_callback_fn cb_fn, void *user_data, libusb_hotplug_callback_handle *handle); 562void libusb_hotplug_deregister_callback(libusb_context *ctx, libusb_hotplug_callback_handle handle); 563 | 2/*- 3 * Copyright (c) 2009 Sylvestre Gallon. 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. --- 546 unchanged lines hidden (view full) --- 556/* Hotplug support */ 557 558typedef int (*libusb_hotplug_callback_fn)(libusb_context *ctx, 559 libusb_device *device, libusb_hotplug_event event, void *user_data); 560 561int libusb_hotplug_register_callback(libusb_context *ctx, libusb_hotplug_event events, libusb_hotplug_flag flags, int vendor_id, int product_id, int dev_class, libusb_hotplug_callback_fn cb_fn, void *user_data, libusb_hotplug_callback_handle *handle); 562void libusb_hotplug_deregister_callback(libusb_context *ctx, libusb_hotplug_callback_handle handle); 563 |
564/* Streams support */ 565 566int libusb_alloc_streams(libusb_device_handle *dev, uint32_t num_streams, unsigned char *endpoints, int num_endpoints); 567int libusb_free_streams(libusb_device_handle *dev, unsigned char *endpoints, int num_endpoints); 568void libusb_transfer_set_stream_id(struct libusb_transfer *transfer, uint32_t stream_id); 569uint32_t libusb_transfer_get_stream_id(struct libusb_transfer *transfer); 570 |
|
564#if 0 565{ /* indent fix */ 566#endif 567#ifdef __cplusplus 568} 569 570#endif 571 572#endif /* __LIBUSB_H__ */ | 571#if 0 572{ /* indent fix */ 573#endif 574#ifdef __cplusplus 575} 576 577#endif 578 579#endif /* __LIBUSB_H__ */ |