aboutsummaryrefslogtreecommitdiffstats
path: root/adb/adb.h
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2009-05-20 17:33:53 -0700
committerXavier Ducrohet <xav@android.com>2009-05-21 10:18:43 -0700
commita09fbd164d2e088bc5433d310e25640ae048d47d (patch)
tree5aadffc643dc078df19984cabbb6412a54b1100d /adb/adb.h
parent463de48fb05cb29388e7763f75f6cfa56a2f5cb1 (diff)
downloadsystem_core-a09fbd164d2e088bc5433d310e25640ae048d47d.tar.gz
system_core-a09fbd164d2e088bc5433d310e25640ae048d47d.tar.bz2
system_core-a09fbd164d2e088bc5433d310e25640ae048d47d.zip
Preparation work for adb to support USB vendor Ids provided by SDK add-ons.
Added usb_vendors.* which handles creating (and deleting) a list of vendor ids. This list is meant to be used everywhere the built-in lists (usb_osx), or the built-in vendor IDs (transport_usb) were used. For now the list is only built with the built-in VENDOR_ID_*. Next step is to read a small file created from all the SDK add-on. Other misc changes: made is_adb_interface present only if ADB_HOST is true to prevent accessing a list that doesn't exist (usb_vendors is only compiled for the host version of adb).
Diffstat (limited to 'adb/adb.h')
-rw-r--r--adb/adb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/adb/adb.h b/adb/adb.h
index aebb81a7..7762e00e 100644
--- a/adb/adb.h
+++ b/adb/adb.h
@@ -375,7 +375,9 @@ int usb_close(usb_handle *h);
void usb_kick(usb_handle *h);
/* used for USB device detection */
+#if ADB_HOST
int is_adb_interface(int vid, int pid, int usb_class, int usb_subclass, int usb_protocol);
+#endif
unsigned host_to_le32(unsigned n);
int adb_commandline(int argc, char **argv);