Deleted Added
full compact
libusb01.c (208021) libusb01.c (213848)
1/* $FreeBSD: head/lib/libusb/libusb20_compat01.c 208021 2010-05-13 00:26:30Z thompsa $ */
1/* $FreeBSD: head/lib/libusb/libusb20_compat01.c 213848 2010-10-14 20:04:36Z hselasky $ */
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.

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

790
791 /*
792 * Be compatible with LibUSB from sourceforge and close the
793 * handle after reset!
794 */
795 return (usb_close(dev));
796}
797
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.

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

790
791 /*
792 * Be compatible with LibUSB from sourceforge and close the
793 * handle after reset!
794 */
795 return (usb_close(dev));
796}
797
798int
799usb_check_connected(usb_dev_handle * dev)
800{
801 int err;
802
803 err = libusb20_dev_check_connected((void *)dev);
804
805 if (err)
806 return (-1);
807
808 return (0);
809}
810
798const char *
799usb_strerror(void)
800{
801 /* TODO */
802 return ("Unknown error");
803}
804
805void

--- 122 unchanged lines hidden ---
811const char *
812usb_strerror(void)
813{
814 /* TODO */
815 return ("Unknown error");
816}
817
818void

--- 122 unchanged lines hidden ---