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 #ifndef __G_MEMORY_MONITOR_H__
0022 #define __G_MEMORY_MONITOR_H__
0023
0024 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
0025 #error "Only <gio/gio.h> can be included directly."
0026 #endif
0027
0028 #include <gio/giotypes.h>
0029
0030 G_BEGIN_DECLS
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040 #define G_MEMORY_MONITOR_EXTENSION_POINT_NAME "gio-memory-monitor"
0041
0042 #define G_TYPE_MEMORY_MONITOR (g_memory_monitor_get_type ())
0043 GIO_AVAILABLE_IN_2_64
0044 G_DECLARE_INTERFACE(GMemoryMonitor, g_memory_monitor, g, memory_monitor, GObject)
0045
0046 #define G_MEMORY_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_MEMORY_MONITOR, GMemoryMonitor))
0047 #define G_IS_MEMORY_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_MEMORY_MONITOR))
0048 #define G_MEMORY_MONITOR_GET_INTERFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), G_TYPE_MEMORY_MONITOR, GMemoryMonitorInterface))
0049
0050 struct _GMemoryMonitorInterface {
0051
0052 GTypeInterface g_iface;
0053
0054
0055 void (*low_memory_warning) (GMemoryMonitor *monitor,
0056 GMemoryMonitorWarningLevel level);
0057 };
0058
0059 GIO_AVAILABLE_IN_2_64
0060 GMemoryMonitor *g_memory_monitor_dup_default (void);
0061
0062 G_END_DECLS
0063
0064 #endif