Debian Codegraph @

data/org.freedesktop.portal.Realtime.xml

raw
1 <?xml version="1.0"?>
2 <!--
3 Copyright (C) 2021 Igalia S.L.
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 -->
18
19 <node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
20 <!--
21 org.freedesktop.portal.Realtime:
22 @short_description: Portal for setting threads to realtime
23
24 Interface for setting a thread to realtime from within the
25 sandbox. It is analogous to the org.freedesktop.RealtimeKit1
26 interface and will proxy requests there but with pid mapping.
27 The latter is necessary in the case that sandbox has pid namespace
28 isolation enabled.
29
30 Note that this proxy does not bypass any limitations that
31 RealtimeKit imposes on processes which are documented here:
32 https://git.0pointer.net/rtkit.git/tree/README
33
34 This documentation describes version 1 of this interface.
35 -->
36 <interface name="org.freedesktop.portal.Realtime">
37 <!--
38 MakeThreadRealtimeWithPID:
39 @process: Process id
40 @thread: Thread id
41 @priority: Priority
42 -->
43 <method name="MakeThreadRealtimeWithPID">
44 <arg type="t" name="process" direction="in"/>
45 <arg type="t" name="thread" direction="in"/>
46 <arg type="u" name="priority" direction="in"/>
47 </method>
48
49 <!--
50 MakeThreadHighPriorityWithPID:
51 @process: Process id
52 @thread: Thread id
53 @priority: Priority
54 -->
55 <method name="MakeThreadHighPriorityWithPID">
56 <arg type="t" name="process" direction="in"/>
57 <arg type="t" name="thread" direction="in"/>
58 <arg type="i" name="priority" direction="in"/>
59 </method>
60
61 <property name="MaxRealtimePriority" type="i" access="read"/>
62 <property name="MinNiceLevel" type="i" access="read"/>
63 <property name="RTTimeUSecMax" type="x" access="read"/>
64
65 <property name="version" type="u" access="read"/>
66 </interface>
67 </node>