libusb.3 (8fa0b743820f61c661ba5f3ea0e3be0dc137910e) | libusb.3 (3102cfe2e21aaea969dcc5245c0b70d9ae643e34) |
---|---|
1.\" 2.\" Copyright (c) 2009 Sylvestre Gallon 3.\" 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 12 unchanged lines hidden (view full) --- 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" 27.\" $FreeBSD$ 28.\" | 1.\" 2.\" Copyright (c) 2009 Sylvestre Gallon 3.\" 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 12 unchanged lines hidden (view full) --- 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" 27.\" $FreeBSD$ 28.\" |
29.Dd November 9, 2011 | 29.Dd February 25, 2012 |
30.Dt LIBUSB 3 31.Os 32.Sh NAME 33.Nm libusb 34.Nd "USB access library" 35.Sh LIBRARY 36USB access library 37.Pq libusb, -lusb --- 440 unchanged lines hidden (view full) --- 478.Ft int 479.Fn libusb_handle_events "libusb_context *ctx" 480Handle any pending events in blocking mode with a sensible timeout. 481Returns 0 482on success and a LIBUSB_ERROR code on failure. 483.Pp 484.Ft int 485.Fn libusb_handle_events_locked "libusb_context *ctx" "struct timeval *tv" | 30.Dt LIBUSB 3 31.Os 32.Sh NAME 33.Nm libusb 34.Nd "USB access library" 35.Sh LIBRARY 36USB access library 37.Pq libusb, -lusb --- 440 unchanged lines hidden (view full) --- 478.Ft int 479.Fn libusb_handle_events "libusb_context *ctx" 480Handle any pending events in blocking mode with a sensible timeout. 481Returns 0 482on success and a LIBUSB_ERROR code on failure. 483.Pp 484.Ft int 485.Fn libusb_handle_events_locked "libusb_context *ctx" "struct timeval *tv" |
486Handle any pending events by polling file desciptors, without checking if | 486Handle any pending events by polling file descriptors, without checking if |
487another thread is already doing so. 488Must be called with the event lock held. 489.Pp 490.Ft int 491.Fn libusb_get_next_timeout "libusb_context *ctx" "struct timeval *tv" 492Determine the next internal timeout that libusb needs to handle. 493Returns 0 494if there are no pending timeouts, 1 if a timeout was returned, or a LIBUSB_ERROR --- 60 unchanged lines hidden --- | 487another thread is already doing so. 488Must be called with the event lock held. 489.Pp 490.Ft int 491.Fn libusb_get_next_timeout "libusb_context *ctx" "struct timeval *tv" 492Determine the next internal timeout that libusb needs to handle. 493Returns 0 494if there are no pending timeouts, 1 if a timeout was returned, or a LIBUSB_ERROR --- 60 unchanged lines hidden --- |