summaryrefslogtreecommitdiffstats
path: root/include/colors.h
diff options
context:
space:
mode:
authorKarel Zak2013-05-07 09:09:35 +0200
committerKarel Zak2013-05-07 09:09:35 +0200
commitb7faf99128c6dd5c01e58de6227fd5ab42f5602c (patch)
tree54a549da474953e93d3ec66148b0653b3494edb4 /include/colors.h
parentprlimit: delete rem_prlim prototype (diff)
downloadkernel-qcow2-util-linux-b7faf99128c6dd5c01e58de6227fd5ab42f5602c.tar.gz
kernel-qcow2-util-linux-b7faf99128c6dd5c01e58de6227fd5ab42f5602c.tar.xz
kernel-qcow2-util-linux-b7faf99128c6dd5c01e58de6227fd5ab42f5602c.zip
lib/colors: add colormode_or_err()
... to make the code easy to use in utils. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/colors.h')
-rw-r--r--include/colors.h1
1 files changed, 1 insertions, 0 deletions
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);