diff options
author | Josh Gao <jmgao@google.com> | 2017-05-09 13:43:35 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2017-05-09 14:32:47 -0700 |
commit | 74395b3facab0995af157791e04a83623172aff6 (patch) | |
tree | 014ccd95e68113cd0de62f9b04517f2f03ac2df9 /usb.h | |
parent | c966d7005e4bf48ad9ded6236403a880b8aa2a02 (diff) | |
download | adb-74395b3facab0995af157791e04a83623172aff6.tar.gz |
adb: move all cleanup to a function with defined ordering.
We want to explicitly define the order in which we teardown adb, so
move all of the at_quick_exits sprinkled throughout into one function
containing all of the cleanup functions.
Bug: http://b/37104408
Test: adb kill-server; adb start-server
Change-Id: I394f5782eb147e394d4b87df1ba364c061de4b90
Diffstat (limited to 'usb.h')
-rw-r--r-- | usb.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -22,6 +22,7 @@ #define ADB_USB_INTERFACE(handle_ref_type) \ void usb_init(); \ + void usb_cleanup(); \ int usb_write(handle_ref_type h, const void* data, int len); \ int usb_read(handle_ref_type h, void* data, int len); \ int usb_close(handle_ref_type h); \ |