Refactor AdbClient and make PlatformAndroid::GetFile to use "adb pull".
http://reviews.llvm.org/D10082
llvm-svn: 238442
diff --git a/lldb/source/Plugins/Platform/Android/AdbClient.h b/lldb/source/Plugins/Platform/Android/AdbClient.h
index d307b6a..82ce84c 100644
--- a/lldb/source/Plugins/Platform/Android/AdbClient.h
+++ b/lldb/source/Plugins/Platform/Android/AdbClient.h
@@ -25,6 +25,9 @@
#include "lldb/Host/ConnectionFileDescriptor.h"
namespace lldb_private {
+
+class FileSpec;
+
namespace platform_android {
class AdbClient
@@ -51,10 +54,10 @@
DeletePortForwarding (const uint16_t port);
Error
- PullFile (const char *remote_file, const char *local_file);
+ PullFile (const FileSpec &remote_file, const FileSpec &local_file);
Error
- PushFile (const lldb_private::FileSpec& source, const lldb_private::FileSpec& destination);
+ PushFile (const FileSpec &local_file, const FileSpec &remote_file);
private:
Error
@@ -91,6 +94,9 @@
Sync ();
Error
+ StartSync ();
+
+ Error
PullFileChunk (std::vector<char> &buffer, bool &eof);
Error