X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Futil.h;h=1662bd44576851875f3ba9b543b3db090abb8f4f;hb=df41aaf9a2b195c9a8bb6fca6672cbf25bc147fb;hp=00d2364c611d13a5fdc062081da9650c9e69bee1;hpb=28383ba18963cdedd98ced271b3425f7321119b7;p=elogind.git diff --git a/src/shared/util.h b/src/shared/util.h index 00d2364c6..1662bd445 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -395,6 +395,10 @@ static inline const char *ansi_highlight_green(void) { return on_tty() ? ANSI_HIGHLIGHT_GREEN_ON : ""; } +static inline const char *ansi_highlight_yellow(void) { + return on_tty() ? ANSI_HIGHLIGHT_YELLOW_ON : ""; +} + static inline const char *ansi_highlight_off(void) { return on_tty() ? ANSI_HIGHLIGHT_OFF : ""; } @@ -632,7 +636,6 @@ int on_ac_power(void); int search_and_fopen(const char *path, const char *mode, const char **search, FILE **_f); int search_and_fopen_nulstr(const char *path, const char *mode, const char *search, FILE **_f); -int create_tmp_dir(char template[], char** dir_name); #define FOREACH_LINE(line, f, on_error) \ for (;;) \