aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBailey Berro <baileyberro@chromium.org>2018-02-21 02:24:48 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-02-21 02:24:48 +0000
commitc431562d8b497cbf1a0de3c80fb25cf2ed083942 (patch)
tree6e3c0b20208abbf38fde3842b5c062c176c8a4bd
parent2ef11fd320f15c1d428b6e933666147df53151f1 (diff)
parentf24f0cc15f3f95c4eabb368a0e3d8be4dc587583 (diff)
downloadsystem_api-c431562d8b497cbf1a0de3c80fb25cf2ed083942.tar.gz
smbprovider: Add CopyEntry protobuf
am: f24f0cc15f Change-Id: I15983a1efe68246803845d049a34744aa227b540
-rw-r--r--dbus/smbprovider/dbus-constants.h1
-rw-r--r--dbus/smbprovider/directory_entry.proto15
2 files changed, 15 insertions, 1 deletions
diff --git a/dbus/smbprovider/dbus-constants.h b/dbus/smbprovider/dbus-constants.h
index 49c8cbf..5f9f02e 100644
--- a/dbus/smbprovider/dbus-constants.h
+++ b/dbus/smbprovider/dbus-constants.h
@@ -26,6 +26,7 @@ const char kTruncateMethod[] = "Truncate";
const char kWriteFileMethod[] = "WriteFile";
const char kCreateDirectoryMethod[] = "CreateDirectory";
const char kMoveEntryMethod[] = "MoveEntry";
+const char kCopyEntryMethod[] = "CopyEntry";
} // namespace smbprovider
diff --git a/dbus/smbprovider/directory_entry.proto b/dbus/smbprovider/directory_entry.proto
index 0403139..ea52b30 100644
--- a/dbus/smbprovider/directory_entry.proto
+++ b/dbus/smbprovider/directory_entry.proto
@@ -174,8 +174,21 @@ message MoveEntryOptionsProto {
// Source path of the entry to be moved. This can be a file or directory path.
// Paths are relative to the mount root. (e.g. "/testfolder/dog.jpg")
optional string source_path = 2;
- // Destination path for the entry to be moved to. This must be a non-existant
+ // Destination path for the entry to be moved to. This must be a non-existent
// file or directory path. Paths are relative to the mount
// root. (e.g. "/testfolder/dog.jpg")
optional string target_path = 3;
+}
+
+// Used for passing inputs into SmbProvider.CopyEntry().
+message CopyEntryOptionsProto {
+ // ID of the mount returned from Mount().
+ optional int32 mount_id = 1;
+ // Source path of the entry to be copied. This can be a file or directory
+ // path. Paths are relative to the mount root. (e.g. "/testfolder/dog.jpg")
+ optional string source_path = 2;
+ // Destination path for the entry to be copied to. This must be a non-existent
+ // file or directory path. Paths are relative to the mount root.
+ // (e.g. "/testfolder/dog.jpg")
+ optional string target_path = 3;
} \ No newline at end of file