Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:58

0001 /* GIO - GLib Input, Output and Streaming Library
0002  *
0003  * Copyright 2019 Red Hat, Inc.
0004  * Copyright 2021 Igalia S.L.
0005  *
0006  * SPDX-License-Identifier: LGPL-2.1-or-later
0007  *
0008  * This library is free software; you can redistribute it and/or
0009  * modify it under the terms of the GNU Lesser General Public
0010  * License as published by the Free Software Foundation; either
0011  * version 2.1 of the License, or (at your option) any later version.
0012  *
0013  * This library is distributed in the hope that it will be useful,
0014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0016  * Lesser General Public License for more details.
0017  *
0018  * You should have received a copy of the GNU Lesser General
0019  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
0020  */
0021 
0022 #ifndef __G_POWER_PROFILE_MONITOR_H__
0023 #define __G_POWER_PROFILE_MONITOR_H__
0024 
0025 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
0026 #error "Only <gio/gio.h> can be included directly."
0027 #endif
0028 
0029 #include <gio/giotypes.h>
0030 
0031 G_BEGIN_DECLS
0032 
0033 /**
0034  * G_POWER_PROFILE_MONITOR_EXTENSION_POINT_NAME:
0035  *
0036  * Extension point for power profile usage monitoring functionality.
0037  * See [Extending GIO][extending-gio].
0038  *
0039  * Since: 2.70
0040  */
0041 #define G_POWER_PROFILE_MONITOR_EXTENSION_POINT_NAME "gio-power-profile-monitor"
0042 
0043 #define G_TYPE_POWER_PROFILE_MONITOR             (g_power_profile_monitor_get_type ())
0044 GIO_AVAILABLE_IN_2_70
0045 G_DECLARE_INTERFACE (GPowerProfileMonitor, g_power_profile_monitor, g, power_profile_monitor, GObject)
0046 
0047 #define G_POWER_PROFILE_MONITOR(o)               (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_POWER_PROFILE_MONITOR, GPowerProfileMonitor))
0048 #define G_IS_POWER_PROFILE_MONITOR(o)            (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_POWER_PROFILE_MONITOR))
0049 #define G_POWER_PROFILE_MONITOR_GET_INTERFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), G_TYPE_POWER_PROFILE_MONITOR, GPowerProfileMonitorInterface))
0050 
0051 struct _GPowerProfileMonitorInterface
0052 {
0053   /*< private >*/
0054   GTypeInterface g_iface;
0055 };
0056 
0057 GIO_AVAILABLE_IN_2_70
0058 GPowerProfileMonitor      *g_power_profile_monitor_dup_default              (void);
0059 
0060 GIO_AVAILABLE_IN_2_70
0061 gboolean                   g_power_profile_monitor_get_power_saver_enabled  (GPowerProfileMonitor *monitor);
0062 
0063 G_END_DECLS
0064 
0065 #endif /* __G_POWER_PROFILE_MONITOR_H__ */