1 /* SPDX-License-Identifier: LGPL-2.1+ */
4 #include "conf-parser.h"
6 typedef enum HandleAction {
15 HANDLE_SUSPEND_THEN_HIBERNATE,
18 _HANDLE_ACTION_INVALID = -1
21 #include "logind-inhibit.h"
24 int manager_handle_action(
26 InhibitWhat inhibit_key,
28 bool ignore_inhibited,
31 const char* handle_action_to_string(HandleAction h) _const_;
32 HandleAction handle_action_from_string(const char *s) _pure_;
34 #if 0 /// elogind does this itself. No target table required
35 const char* manager_target_for_action(HandleAction handle);
38 CONFIG_PARSER_PROTOTYPE(config_parse_handle_action);