chiark / gitweb /
logind: unify all session lock loop
[elogind.git] / src / shared / util.h
index 8935beea2b6845f4de3836f5d08a01b97c36fc0e..f726263dd329712012050c3884701779043aad6c 100644 (file)
@@ -142,8 +142,8 @@ static inline bool isempty(const char *p) {
 }
 
 char *endswith(const char *s, const char *postfix);
-bool startswith(const char *s, const char *prefix);
-bool startswith_no_case(const char *s, const char *prefix);
+char *startswith(const char *s, const char *prefix);
+char *startswith_no_case(const char *s, const char *prefix);
 
 bool first_word(const char *s, const char *word);
 
@@ -529,6 +529,7 @@ int setrlimit_closest(int resource, const struct rlimit *rlim);
 int getenv_for_pid(pid_t pid, const char *field, char **_value);
 
 int can_sleep(const char *type);
+int can_sleep_disk(const char *type);
 
 bool is_valid_documentation_url(const char *url);