X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fjtag%2Fdrivers%2Flibusb1_common.h;h=0e653d845400d3b9c997713ad830a8e280f0259b;hb=dd6274deed65c47ba2ef46e14259167d393399d8;hp=f0bf722b830b556faa26bb3578668a1b8f4b3544;hpb=700e7605fe63571f6b912ce994c2f1eb1fd4fe92;p=openocd.git diff --git a/src/jtag/drivers/libusb1_common.h b/src/jtag/drivers/libusb1_common.h index f0bf722b83..0e653d8454 100644 --- a/src/jtag/drivers/libusb1_common.h +++ b/src/jtag/drivers/libusb1_common.h @@ -16,13 +16,13 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * ***************************************************************************/ #ifndef JTAG_LIBUSB_COMMON_H #define JTAG_LIBUSB_COMMON_H -#include +#include #define jtag_libusb_device libusb_device #define jtag_libusb_device_handle libusb_device_handle @@ -41,6 +41,12 @@ static inline int jtag_libusb_claim_interface(jtag_libusb_device_handle *devh, return libusb_claim_interface(devh, iface); }; +static inline int jtag_libusb_release_interface(jtag_libusb_device_handle *devh, + int iface) +{ + return libusb_release_interface(devh, iface); +} + int jtag_libusb_open(const uint16_t vids[], const uint16_t pids[], struct jtag_libusb_device_handle **out); void jtag_libusb_close(jtag_libusb_device_handle *dev);