diff options
author | Bailey Berro <baileyberro@chromium.org> | 2018-02-21 02:51:19 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-02-21 02:51:19 +0000 |
commit | 0a469a98d0f39ca8a419ac836ac48d6c5d5f2a2e (patch) | |
tree | 6e3c0b20208abbf38fde3842b5c062c176c8a4bd | |
parent | e268d8094e999b19c562a390d4c579111930ede3 (diff) | |
parent | 3bfd04636ac882d620c140ab210f636be6d8c480 (diff) | |
download | system_api-0a469a98d0f39ca8a419ac836ac48d6c5d5f2a2e.tar.gz |
smbprovider: Add CopyEntry protobuf am: f24f0cc15f am: c431562d8b am: 1631c94c86
am: 3bfd04636a
Change-Id: I1a9aaf8ed8c3173c5c152a3a8efbd8800943abf6
-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 |