diff options
| author | Xavier Ducrohet <xav@android.com> | 2009-05-20 17:33:53 -0700 |
|---|---|---|
| committer | Xavier Ducrohet <xav@android.com> | 2009-05-21 10:18:43 -0700 |
| commit | a09fbd164d2e088bc5433d310e25640ae048d47d (patch) | |
| tree | 5aadffc643dc078df19984cabbb6412a54b1100d /adb/adb.h | |
| parent | 463de48fb05cb29388e7763f75f6cfa56a2f5cb1 (diff) | |
| download | system_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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
