diff options
author | Bailey Berro <baileyberro@chromium.org> | 2018-02-21 02:35:47 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-02-21 02:35:47 +0000 |
commit | 1631c94c86f37b307a8575ad6526ebd2975bd4bf (patch) | |
tree | 6e3c0b20208abbf38fde3842b5c062c176c8a4bd | |
parent | 5da9de9c529afcb5eccaac729dc629901526da5e (diff) | |
parent | c431562d8b497cbf1a0de3c80fb25cf2ed083942 (diff) | |
download | system_api-1631c94c86f37b307a8575ad6526ebd2975bd4bf.tar.gz |
smbprovider: Add CopyEntry protobuf am: f24f0cc15f
am: c431562d8b
Change-Id: I3ea4aa011930152337a71551dabe184c21316460
-rw-r--r-- | dbus/smbprovider/dbus-constants.h | 1 | ||||
-rw-r--r-- | dbus/smbprovider/directory_entry.proto | 15 |
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 |