diff options
author | Timothy <timmot@users.noreply.github.com> | 2021-07-05 17:38:25 +1000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-10 15:33:46 +0200 |
commit | 41ce2debda1de75f80a4971afbf5ec7dcddf5ba3 (patch) | |
tree | ae0cf7374e624b880355fb72dbd9f9dccb87762d /Userland/Services/FileSystemAccessServer/FileSystemAccessServer.ipc | |
parent | 5e823d3de0416461fe203143a1dbbb1530d351e8 (diff) | |
download | serenity-41ce2debda1de75f80a4971afbf5ec7dcddf5ba3.zip |
FileSystemAccessServer: Add service for accessing veiled files nicely
Adds new service FileSystemAccessServer which allows programs to
request a file descriptor for any file on the file system.
The user can be prompted to choose the path with a FilePicker, or the
path can be provided by the application which will show a MessageBox
showing the pid and name of the calling process and allows the user to
approve or deny the request.
Diffstat (limited to 'Userland/Services/FileSystemAccessServer/FileSystemAccessServer.ipc')
-rw-r--r-- | Userland/Services/FileSystemAccessServer/FileSystemAccessServer.ipc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Userland/Services/FileSystemAccessServer/FileSystemAccessServer.ipc b/Userland/Services/FileSystemAccessServer/FileSystemAccessServer.ipc new file mode 100644 index 0000000000..6f10d9ba61 --- /dev/null +++ b/Userland/Services/FileSystemAccessServer/FileSystemAccessServer.ipc @@ -0,0 +1,9 @@ +#include <AK/URL.h> +#include <LibCore/IODevice.h> + +endpoint FileSystemAccessServer +{ + request_file(String path, Core::OpenMode requested_access) => (i32 error, Optional<IPC::File> fd) + prompt_open_file(String path_to_view, Core::OpenMode requested_access) => (i32 error, Optional<IPC::File> fd, Optional<String> chosen_file) + prompt_save_file(String title, String ext, String path_to_view, Core::OpenMode requested_access) => (i32 error, Optional<IPC::File> fd, Optional<String> chosen_file) +} |