diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2012-04-24 09:47:35 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-04-24 09:47:35 -0700 |
commit | e36df300dcaa156e67b6c3069a737455cde36c9a (patch) | |
tree | fc00a9ab25f4070f972d916b6696a92b08d73495 /include | |
parent | 33ab4ed6fc7cf558ff78635d40654879608685af (diff) | |
parent | 594947793c98e8e7f58f0e9b2cb962c9ef23adeb (diff) | |
download | system_core-e36df300dcaa156e67b6c3069a737455cde36c9a.zip system_core-e36df300dcaa156e67b6c3069a737455cde36c9a.tar.gz system_core-e36df300dcaa156e67b6c3069a737455cde36c9a.tar.bz2 |
Merge "Add ability to quote responses as needed."
Diffstat (limited to 'include')
-rw-r--r-- | include/sysutils/SocketClient.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sysutils/SocketClient.h b/include/sysutils/SocketClient.h index 4d7c4fa..85b58ef 100644 --- a/include/sysutils/SocketClient.h +++ b/include/sysutils/SocketClient.h @@ -64,6 +64,9 @@ public: void incRef(); bool decRef(); // returns true at 0 (but note: SocketClient already deleted) + // return a new string in quotes with '\\' and '\"' escaped for "my arg" transmissions + static char *quoteArg(const char *arg); + private: // Send null-terminated C strings int sendMsg(const char *msg); |