chiark / gitweb /
Fix assertion failure when resuming from sleep/suspend
[elogind.git] / src / login / logind-action.h
index ff98065371c5c996caf199eb19d67ade4cb72561..6b63b92d3c5e2c62432b8d938c4709f9ce62f8ee 100644 (file)
@@ -22,7 +22,7 @@
 ***/
 
 typedef enum HandleAction {
-        HANDLE_IGNORE,
+        HANDLE_IGNORE = 0,
         HANDLE_POWEROFF,
         HANDLE_REBOOT,
         HANDLE_HALT,
@@ -44,6 +44,8 @@ int manager_handle_action(
                 bool ignore_inhibited,
                 bool is_edge);
 
+int shutdown_or_sleep(Manager *m, HandleAction action);
+
 const char* handle_action_to_string(HandleAction h) _const_;
 HandleAction handle_action_from_string(const char *s) _pure_;