summaryrefslogtreecommitdiff
path: root/src/nm-sleep-monitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nm-sleep-monitor.h')
-rw-r--r--src/nm-sleep-monitor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nm-sleep-monitor.h b/src/nm-sleep-monitor.h
index 494a188eae..140f964f06 100644
--- a/src/nm-sleep-monitor.h
+++ b/src/nm-sleep-monitor.h
@@ -36,6 +36,12 @@ typedef struct _NMSleepMonitorClass NMSleepMonitorClass;
GType nm_sleep_monitor_get_type (void) G_GNUC_CONST;
NMSleepMonitor *nm_sleep_monitor_new (void);
+typedef struct _NMSleepMonitorInhibitorHandle NMSleepMonitorInhibitorHandle;
+
+NMSleepMonitorInhibitorHandle *nm_sleep_monitor_inhibit_take (NMSleepMonitor *self);
+void nm_sleep_monitor_inhibit_release (NMSleepMonitor *self,
+ NMSleepMonitorInhibitorHandle *handle);
+
G_END_DECLS
#endif /* __NETWORKMANAGER_SLEEP_MONITOR_H__ */