summaryrefslogtreecommitdiff
path: root/adb_client.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-05-29 17:55:19 -0700
committerElliott Hughes <enh@google.com>2015-05-29 18:03:57 -0700
commit59ab92cdd28a9872b5cfe382ab2b47636958f775 (patch)
tree52b3e4106efcec99a1e03f95ab8d443582ba130f /adb_client.h
parente67ec453a6776bbb354b00a3b0477334a43dd543 (diff)
downloadadb-59ab92cdd28a9872b5cfe382ab2b47636958f775.tar.gz
Fix error handling/reporting for "adb forward" and "adb reverse".
We really need better infrastructure for parsing adb subcommands, but in the meantime... At least this cleans up a little more of the implementation too. Bug: http://b/20736014 Change-Id: I76209847da3724906c71924017bcb69fa31e0b49
Diffstat (limited to 'adb_client.h')
-rw-r--r--adb_client.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/adb_client.h b/adb_client.h
index 9895c49..5de0638 100644
--- a/adb_client.h
+++ b/adb_client.h
@@ -26,9 +26,9 @@
int adb_connect(const std::string& service, std::string* error);
int _adb_connect(const std::string& service, std::string* error);
-// Connect to adb, connect to the named service, return 0 if the connection
-// succeeded AND the service returned OKAY.
-int adb_command(const std::string& service, std::string* error);
+// Connect to adb, connect to the named service, returns true if the connection
+// succeeded AND the service returned OKAY. Outputs any returned error otherwise.
+bool adb_command(const std::string& service);
// Connects to the named adb service and fills 'result' with the response.
// Returns true on success; returns false and fills 'error' on failure.