/* * OpenBSD stub implementations of the old-style adb USB API (usb_handle*). * * These are never called because should_use_libusb() always returns true on * OpenBSD, but the linker requires them to resolve symbols referenced from * adb/client/transport_usb.cpp. * * Licensed under the Apache License, Version 2.0. */ #include #include "client/usb.h" struct usb_handle {}; void usb_init() {} void usb_cleanup() {} int usb_write(usb_handle*, const void*, int) { return -1; } int usb_read(usb_handle*, void*, int) { return -1; } int usb_close(usb_handle*) { return -1; } void usb_reset(usb_handle*) {} void usb_kick(usb_handle*) {} size_t usb_get_max_packet_size(usb_handle*) { return 512; }