From b7faf99128c6dd5c01e58de6227fd5ab42f5602c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 7 May 2013 09:09:35 +0200 Subject: lib/colors: add colormode_or_err() ... to make the code easy to use in utils. Signed-off-by: Karel Zak --- include/colors.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/colors.h') diff --git a/include/colors.h b/include/colors.h index f9e36fd57..b6c99171a 100644 --- a/include/colors.h +++ b/include/colors.h @@ -48,6 +48,7 @@ enum colortmode { }; extern int colormode_from_string(const char *str); +extern int colormode_or_err(const char *str, const char *errmsg); /* Initialize the global variable OUT_IS_TERM */ extern int colors_init(int mode); -- cgit v1.2.3-55-g7522