libusb10.c (90988efdc51e8442e21a0ecc8913b21662b168a1) libusb10.c (14b896ce80daad378a70a125ca15c2e23cd8d34b)
1/* $FreeBSD$ */
2/*-
3 * Copyright (c) 2009 Sylvestre Gallon. All rights reserved.
4 * Copyright (c) 2009 Hans Petter Selasky. 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:

--- 55 unchanged lines hidden (view full) ---

64static void libusb10_complete_transfer(struct libusb20_transfer *, struct libusb_super_transfer *, int);
65static void libusb10_isoc_proxy(struct libusb20_transfer *);
66static void libusb10_bulk_intr_proxy(struct libusb20_transfer *);
67static void libusb10_ctrl_proxy(struct libusb20_transfer *);
68static void libusb10_submit_transfer_sub(struct libusb20_device *, uint8_t);
69
70/* Library initialisation / deinitialisation */
71
1/* $FreeBSD$ */
2/*-
3 * Copyright (c) 2009 Sylvestre Gallon. All rights reserved.
4 * Copyright (c) 2009 Hans Petter Selasky. 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:

--- 55 unchanged lines hidden (view full) ---

64static void libusb10_complete_transfer(struct libusb20_transfer *, struct libusb_super_transfer *, int);
65static void libusb10_isoc_proxy(struct libusb20_transfer *);
66static void libusb10_bulk_intr_proxy(struct libusb20_transfer *);
67static void libusb10_ctrl_proxy(struct libusb20_transfer *);
68static void libusb10_submit_transfer_sub(struct libusb20_device *, uint8_t);
69
70/* Library initialisation / deinitialisation */
71
72static const struct libusb_version libusb_version = {
73 .major = 1,
74 .minor = 0,
75 .micro = 0,
76 .nano = 2016,
77 .rc = "",
78 .describe = "http://www.freebsd.org"
79};
80
81const struct libusb_version *
82libusb_get_version(void)
83{
84
85 return (&libusb_version);
86}
87
72void
73libusb_set_debug(libusb_context *ctx, int level)
74{
75 ctx = GET_CONTEXT(ctx);
76 if (ctx)
77 ctx->debug = level;
78}
79

--- 1505 unchanged lines hidden ---
88void
89libusb_set_debug(libusb_context *ctx, int level)
90{
91 ctx = GET_CONTEXT(ctx);
92 if (ctx)
93 ctx->debug = level;
94}
95

--- 1505 unchanged lines hidden ---