diff options
Diffstat (limited to 'adb/adb_io.h')
-rw-r--r-- | adb/adb_io.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/adb/adb_io.h b/adb/adb_io.h index e2df1b1ef..d6e65d8de 100644 --- a/adb/adb_io.h +++ b/adb/adb_io.h @@ -20,6 +20,7 @@ #include <sys/types.h> #include <string> +#include <string_view> #include "adb_unique_fd.h" @@ -27,10 +28,10 @@ bool SendOkay(int fd); // Sends the protocol "FAIL" message, with the given failure reason. -bool SendFail(int fd, const std::string& reason); +bool SendFail(int fd, std::string_view reason); // Writes a protocol-format string; a four hex digit length followed by the string data. -bool SendProtocolString(int fd, const std::string& s); +bool SendProtocolString(int fd, std::string_view s); // Reads a protocol-format string; a four hex digit length followed by the string data. bool ReadProtocolString(int fd, std::string* s, std::string* error); |