summaryrefslogtreecommitdiff
path: root/src/sleep/sleep.h
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-06-14 17:23:00 +0200
committerSven Eden <yamakuzure@gmx.net>2017-06-16 10:13:01 +0200
commitc2c096d2926572113cba380fde34b119661d45f8 (patch)
tree124997013b1093b82f9278ed628de41cf5161d7f /src/sleep/sleep.h
parent6f2f5118f1ba06b7fd93a0ce6661530ea1f7e7ee (diff)
Prep v231: Reorganize elogind specific code in login/logind-action.c
- Move elogind specific code in login/logind-action.c to login/elogind-action.c - Remove login/logind-sleep.* - Add src/sleep from upstream - Integrate the systemd-sleep utility, so future fixes and updates will be easier to spot and to apply.
Diffstat (limited to 'src/sleep/sleep.h')
-rw-r--r--src/sleep/sleep.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/sleep/sleep.h b/src/sleep/sleep.h
new file mode 100644
index 000000000..85669fa07
--- /dev/null
+++ b/src/sleep/sleep.h
@@ -0,0 +1,26 @@
+#pragma once
+#ifndef ELOGIND_SRC_SLEEP_SLEEP_H_INCLUDED
+#define ELOGIND_SRC_SLEEP_SLEEP_H_INCLUDED
+
+/***
+ This file is part of elogind.
+
+ Copyright 2017 Sven Eden
+
+ elogind 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.
+
+ elogind 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 elogind; If not, see <http://www.gnu.org/licenses/>.
+***/
+
+int do_sleep(const char *verb, char **modes, char **states);
+
+#endif // ELOGIND_SRC_SLEEP_SLEEP_H_INCLUDED