chiark / gitweb /
main: move make_null_stdio() to util.c
[elogind.git] / src / util.h
index b257ee5603e4c46e3a9ab9d36016c752d967e9a5..ddf089cfe791ec91a71effb91c9470c38fe21372 100644 (file)
@@ -265,6 +265,7 @@ char *format_timestamp_pretty(char *buf, size_t l, usec_t t);
 char *format_timespan(char *buf, size_t l, usec_t t);
 
 int make_stdio(int fd);
+int make_null_stdio(void);
 
 bool is_clean_exit(int code, int status);
 bool is_clean_exit_lsb(int code, int status);
@@ -364,6 +365,11 @@ bool null_or_empty(struct stat *st);
 
 DIR *xopendirat(int dirfd, const char *name);
 
+int ask_password_tty(const char *message, usec_t until, const char *flag_file, char **_passphrase);
+
+void dual_timestamp_serialize(FILE *f, const char *name, dual_timestamp *t);
+void dual_timestamp_deserialize(FILE *f, const char *line, dual_timestamp *t);
+
 #define NULSTR_FOREACH(i, l) \
         for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)