libusb10.c (8b3bc70a2b2d3889f9163e5e5a24747cea6417e6) | libusb10.c (04391da364e252ca15645147e2c966dc6d1fbbda) |
---|---|
1/* $FreeBSD$ */ 2/*- 3 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 4 * 5 * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. 6 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 1702 unchanged lines hidden (view full) --- 1711 case LIBUSB_ERROR_NOT_SUPPORTED: 1712 return ("LIBUSB_ERROR_NOT_SUPPORTED"); 1713 case LIBUSB_ERROR_OTHER: 1714 return ("LIBUSB_ERROR_OTHER"); 1715 default: 1716 return ("LIBUSB_ERROR_UNKNOWN"); 1717 } 1718} | 1/* $FreeBSD$ */ 2/*- 3 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 4 * 5 * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. 6 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 1702 unchanged lines hidden (view full) --- 1711 case LIBUSB_ERROR_NOT_SUPPORTED: 1712 return ("LIBUSB_ERROR_NOT_SUPPORTED"); 1713 case LIBUSB_ERROR_OTHER: 1714 return ("LIBUSB_ERROR_OTHER"); 1715 default: 1716 return ("LIBUSB_ERROR_UNKNOWN"); 1717 } 1718} |
1719 1720int 1721libusb_has_capability(uint32_t capability) 1722{ 1723 1724 switch (capability) { 1725 case LIBUSB_CAP_HAS_CAPABILITY: 1726 case LIBUSB_CAP_HAS_HOTPLUG: 1727 case LIBUSB_CAP_HAS_HID_ACCESS: 1728 case LIBUSB_CAP_SUPPORTS_DETACH_KERNEL_DRIVER: 1729 return (1); 1730 default: 1731 return (0); 1732 } 1733} |
|