| 1 |
<?xml version="1.0"?> |
| 2 |
<!-- |
| 3 |
Copyright (C) 2016, 2019 Red Hat, Inc. |
| 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 |
|
| 12 |
This library is distributed in the hope that it will be useful, |
| 13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
Lesser General Public License for more details. |
| 16 |
|
| 17 |
You should have received a copy of the GNU Lesser General Public |
| 18 |
License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 19 |
|
| 20 |
Authors: Matthias Clasen <[email protected]> |
| 21 |
Bastien Nocera <[email protected]> |
| 22 |
--> |
| 23 |
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd"> |
| 24 |
<!-- |
| 25 |
org.freedesktop.portal.MemoryMonitor: |
| 26 |
@short_description: Memory monitoring portal |
| 27 |
|
| 28 |
The Memory Monitor interface provides information about low system |
| 29 |
memory to sandboxed applications. It is not a portal in the strict |
| 30 |
sense, since it does not involve user interaction. Applications are |
| 31 |
expected to use this interface indirectly, via a library API |
| 32 |
such as the GLib GMemoryMonitor interface. |
| 33 |
|
| 34 |
This documentation describes version 1 of this interface. |
| 35 |
--> |
| 36 |
<interface name="org.freedesktop.portal.MemoryMonitor"> |
| 37 |
<!-- |
| 38 |
LowMemoryWarning: |
| 39 |
@level: An integer representing the level of low memory warning. |
| 40 |
|
| 41 |
Signal emitted when a particular low memory situation happens with 0 being the lowest |
| 42 |
level of memory availability warning, and 255 being the highest. Those levels are defined |
| 43 |
and documented in `Low Memory Monitor's documentation |
| 44 |
<https://hadess.pages.freedesktop.org/low-memory-monitor/>`_. |
| 45 |
--> |
| 46 |
<signal name="LowMemoryWarning"> |
| 47 |
<arg name="level" type="y"/> |
| 48 |
</signal> |
| 49 |
|
| 50 |
<property name="version" type="u" access="read"/> |
| 51 |
</interface> |
| 52 |
</node> |