devel/adb: new port
This commit is contained in:
25
devel/adb/files/adb_usb_openbsd.cpp
Normal file
25
devel/adb/files/adb_usb_openbsd.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* 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 <stddef.h>
|
||||
|
||||
#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; }
|
||||
Reference in New Issue
Block a user