aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBailey Berro <baileyberro@chromium.org>2018-02-14 05:22:42 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-02-14 05:22:42 +0000
commitb3e78ed7f9ea574cb45c15e2e8341dd2c9b63acd (patch)
treed7a2c118d2f4ed00bb3329f796c6efd7b011dcb8
parent3a9de954d130ed2002d4099381e13ce31ec9f943 (diff)
parenta8aa6aa88f0b1daf808e787f9a319e102d48cb05 (diff)
downloadsystem_api-b3e78ed7f9ea574cb45c15e2e8341dd2c9b63acd.tar.gz
smbprovider: Add MoveEntry protobuf
am: a8aa6aa88f Change-Id: Ic72f593f64bd3e9d03201aa58a4408a280b1c1e1
-rw-r--r--dbus/smbprovider/dbus-constants.h1
-rw-r--r--dbus/smbprovider/directory_entry.proto13
2 files changed, 14 insertions, 0 deletions
diff --git a/dbus/smbprovider/dbus-constants.h b/dbus/smbprovider/dbus-constants.h
index 3e41e16..49c8cbf 100644
--- a/dbus/smbprovider/dbus-constants.h
+++ b/dbus/smbprovider/dbus-constants.h
@@ -25,6 +25,7 @@ const char kCreateFileMethod[] = "CreateFile";
const char kTruncateMethod[] = "Truncate";
const char kWriteFileMethod[] = "WriteFile";
const char kCreateDirectoryMethod[] = "CreateDirectory";
+const char kMoveEntryMethod[] = "MoveEntry";
} // namespace smbprovider
diff --git a/dbus/smbprovider/directory_entry.proto b/dbus/smbprovider/directory_entry.proto
index 168390f..0403139 100644
--- a/dbus/smbprovider/directory_entry.proto
+++ b/dbus/smbprovider/directory_entry.proto
@@ -165,4 +165,17 @@ message CreateDirectoryOptionsProto {
// Boolean indicating whether the create should be recursive, meaning the
// parent directories will also be created if they currently don't exist.
optional bool recursive = 3;
+}
+
+// Used for passing inputs into SmbProvider.MoveEntry().
+message MoveEntryOptionsProto {
+ // ID of the mount returned from Mount().
+ optional int32 mount_id = 1;
+ // 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
+ // 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