summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-07-10 16:46:27 +0200
committerAlexander Larsson <alexl@redhat.com>2015-07-10 16:56:39 +0200
commit929071ad1083494f717f6a5ab6dfcf817d143700 (patch)
tree0f01ac260bc5fe087bb478582f27cd6da832bbed /data
parentb0e1124f0262d9d4cbfe9c6715eae3a3dcfb4875 (diff)
downloadxdg-app-929071ad1083494f717f6a5ab6dfcf817d143700.tar.gz
Import xdg-document-portal from github repo
This pulls in the daemon code from: https://github.com/alexlarsson/xdg-document-portal/ We need this in xdg-app because we need to set up the mounts correctly.
Diffstat (limited to 'data')
-rw-r--r--data/org.freedesktop.portal.documents.xml50
1 files changed, 50 insertions, 0 deletions
diff --git a/data/org.freedesktop.portal.documents.xml b/data/org.freedesktop.portal.documents.xml
new file mode 100644
index 0000000..3acf79e
--- /dev/null
+++ b/data/org.freedesktop.portal.documents.xml
@@ -0,0 +1,50 @@
+<!DOCTYPE node PUBLIC
+"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+
+<!--
+ Copyright (C) 2015 Red Hat, Inc.
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General
+ Public License along with this library; if not, write to the
+ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+
+ Author: Alexander Larsson <alexl@redhat.com>
+-->
+
+<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
+ <interface name='org.freedesktop.portal.Documents'>
+ <method name="Add">
+ <arg type='s' name='uri' direction='in'/>
+ <arg type='u' name='doc_id' direction='out'/>
+ </method>
+ <method name="AddLocal">
+ <arg type='h' name='fd' direction='in'/>
+ <arg type='u' name='doc_id' direction='out'/>
+ </method>
+ <method name="GrantPermissions">
+ <arg type='u' name='doc_id' direction='in'/>
+ <arg type='s' name='app_id' direction='in'/>
+ <arg type='as' name='permissions' direction='in'/>
+ </method>
+ <method name="RevokePermissions">
+ <arg type='u' name='doc_id' direction='in'/>
+ <arg type='s' name='app_id' direction='in'/>
+ <arg type='as' name='permissions' direction='in'/>
+ </method>
+ <method name="Delete">
+ <arg type='u' name='doc_id' direction='in'/>
+ </method>
+ </interface>
+</node>