summaryrefslogtreecommitdiff
path: root/src/login/logind-action.h
diff options
context:
space:
mode:
authorMark Hindley <mark@hindley.org.uk>2018-10-29 15:58:23 +0000
committerMark Hindley <mark@hindley.org.uk>2018-10-30 16:35:33 +0000
commita40b5201585a0fa96d1bcdfc4584b5d1ff7e2583 (patch)
tree605dc2f4ccaf782d2e928d72bbdeb6330abf521d /src/login/logind-action.h
parent48ae8adcd5d880d056a6ec6f68a31d38db24e55d (diff)
parent1f0d51f2fc42fcaa55d7fcd536dc722d69344454 (diff)
Merge remote-tracking branch 'origin/upstream/latest' into merge_v239
Diffstat (limited to 'src/login/logind-action.h')
-rw-r--r--src/login/logind-action.h27
1 files changed, 8 insertions, 19 deletions
diff --git a/src/login/logind-action.h b/src/login/logind-action.h
index fb40ae48d..bc2d36050 100644
--- a/src/login/logind-action.h
+++ b/src/login/logind-action.h
@@ -1,23 +1,7 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
-/***
- This file is part of systemd.
-
- Copyright 2012 Lennart Poettering
-
- systemd is free software; you can redistribute it and/or modify it
- under the terms of the GNU Lesser General Public License as published by
- the Free Software Foundation; either version 2.1 of the License, or
- (at your option) any later version.
-
- systemd is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with systemd; If not, see <http://www.gnu.org/licenses/>.
-***/
+#include "conf-parser.h"
typedef enum HandleAction {
HANDLE_IGNORE,
@@ -28,6 +12,7 @@ typedef enum HandleAction {
HANDLE_SUSPEND,
HANDLE_HIBERNATE,
HANDLE_HYBRID_SLEEP,
+ HANDLE_SUSPEND_THEN_HIBERNATE,
HANDLE_LOCK,
_HANDLE_ACTION_MAX,
_HANDLE_ACTION_INVALID = -1
@@ -46,4 +31,8 @@ int manager_handle_action(
const char* handle_action_to_string(HandleAction h) _const_;
HandleAction handle_action_from_string(const char *s) _pure_;
-int config_parse_handle_action(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
+#if 0 /// elogind does this itself. No target table required
+const char* manager_target_for_action(HandleAction handle);
+#endif // 0
+
+CONFIG_PARSER_PROTOTYPE(config_parse_handle_action);