From 6ce8521b640c7a69f97a2fd7c96de94eb9a83125 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 19 May 2017 17:01:46 +0200 Subject: [PATCH] document-portal: Add AddFull() operation This allows you to add multiple paths at the same time, plus grant an app access to it, plus it returns the fuse mount path. This allows you to avoid a lot of roundtrip in common cases. --- data/org.freedesktop.portal.Documents.xml | 26 +++ document-portal/Makefile.am.inc | 1 + document-portal/xdp-enums.h | 7 + document-portal/xdp-main.c | 216 ++++++++++++++++++---- tests/test-doc-portal.c | 84 +++++++++ 5 files changed, 301 insertions(+), 33 deletions(-) diff --git a/data/org.freedesktop.portal.Documents.xml b/data/org.freedesktop.portal.Documents.xml index 148e33d7..8d1f1f75 100644 --- a/data/org.freedesktop.portal.Documents.xml +++ b/data/org.freedesktop.portal.Documents.xml @@ -96,6 +96,32 @@ + + + + + + + + + +