mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 03:50:47 -05:00
18d670e69f
This object takes over the functionality of meta-idle-monitor-dbus.c, meta-idle-monitor.c and meta-backend.c, all related to higher level management of idle watches etc. The idle D-Bus API is changed to be initialized by the backend instead of MetaDisplay, as it's more of a backend functionality than what MetaDisplay usually deals with. It also takes over the work of implementing "core" idle monitors. The singleton API is replaced with thin wrapper functions on the backend. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1859>
40 lines
1.4 KiB
C
40 lines
1.4 KiB
C
/*
|
|
* Copyright 2021 Red Hat, Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This program 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
|
|
* General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#ifndef META_IDLE_MANAGER_H
|
|
#define META_IDLE_MANAGER_H
|
|
|
|
#include "backends/meta-backend-types.h"
|
|
#include "clutter/clutter.h"
|
|
|
|
typedef struct _MetaIdleMonitor MetaIdleMonitor;
|
|
typedef struct _MetaIdleManager MetaIdleManager;
|
|
|
|
MetaIdleMonitor * meta_idle_manager_get_monitor (MetaIdleManager *idle_manager,
|
|
ClutterInputDevice *device);
|
|
|
|
MetaIdleMonitor * meta_idle_manager_get_core_monitor (MetaIdleManager *idle_manager);
|
|
|
|
void meta_idle_manager_reset_idle_time (MetaIdleManager *idle_manager);
|
|
|
|
MetaIdleManager * meta_idle_manager_new (MetaBackend *backend);
|
|
|
|
void meta_idle_manager_free (MetaIdleManager *idle_manager);
|
|
|
|
#endif /* META_IDLE_MANAGER_H */
|