adb: add error-generating overload of adb_close(unique_fd).

Test: mma
Change-Id: Id9c1230394afe980ba90dbd5150b65e8bf997b6c
This commit is contained in:
Josh Gao 2018-07-25 18:03:08 -07:00
parent 56300c9d00
commit 6523309151

View file

@ -31,3 +31,7 @@ using unique_fd = android::base::unique_fd_impl<AdbCloser>;
#if !defined(_WIN32)
bool Pipe(unique_fd* read, unique_fd* write, int flags = 0);
#endif
template <typename T>
int adb_close(const android::base::unique_fd_impl<T>&)
__attribute__((__unavailable__("adb_close called on unique_fd")));