chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
time-util: refuse formatting/parsing times that we can't store
[elogind.git]
/
src
/
shared
/
sleep-config.h
diff --git
a/src/shared/sleep-config.h
b/src/shared/sleep-config.h
index 0bfbaeff326f7058e7fbf587f0abec01df0afa77..238775dc4c0333dd94de951587222d0a57198240 100644
(file)
--- a/
src/shared/sleep-config.h
+++ b/
src/shared/sleep-config.h
@@
-1,3
+1,5
@@
+#pragma once
+
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-17,12
+19,13
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#pragma once
-
#if 0 /// UNNEEDED by elogind
int parse_sleep_config(const char *verb, char ***modes, char ***states);
#if 0 /// UNNEEDED by elogind
int parse_sleep_config(const char *verb, char ***modes, char ***states);
-#endif // 0
int can_sleep(const char *verb);
int can_sleep_disk(char **types);
int can_sleep_state(char **types);
int can_sleep(const char *verb);
int can_sleep_disk(char **types);
int can_sleep_state(char **types);
+#else
+#include <logind.h>
+int can_sleep(Manager* m, const char *verb);
+#endif // 0