File indexing completed on 2025-01-18 09:59:58
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
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
0035
0036
0037
0038
0039
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
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