X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fsleep-config.h;fp=src%2Fshared%2Fsleep-config.h;h=238775dc4c0333dd94de951587222d0a57198240;hb=d5fe86b9254c47ef077a467746fec3b6e193ab4b;hp=0000000000000000000000000000000000000000;hpb=5d2803744e2a425ad476737fb3f812833a632f7d;p=elogind.git diff --git a/src/shared/sleep-config.h b/src/shared/sleep-config.h new file mode 100644 index 000000000..238775dc4 --- /dev/null +++ b/src/shared/sleep-config.h @@ -0,0 +1,31 @@ +#pragma once + +/*** + This file is part of systemd. + + Copyright 2013 Zbigniew Jędrzejewski-Szmek + + 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 . +***/ + +#if 0 /// UNNEEDED by elogind +int parse_sleep_config(const char *verb, char ***modes, char ***states); + +int can_sleep(const char *verb); +int can_sleep_disk(char **types); +int can_sleep_state(char **types); +#else +#include +int can_sleep(Manager* m, const char *verb); +#endif // 0