diff options
author | Simon Gomizelj <simongmzlj@gmail.com> | 2013-03-01 14:52:16 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-03-07 15:55:04 +1000 |
commit | 6582f68c9d8c36806b2450540cf2dea87c930177 (patch) | |
tree | 083a30deef0c4d2ceba6e2dbd1e55dcdb8383e84 /src/pacman/conf.h | |
parent | c8c7a5137473770eb4b2d9d54495c2a39b32cbe3 (diff) |
introduce colstr for colourizing
colstr_t colstr will hold the colourizing agents.
Signed-off-by: Simon Gomizelj <simongmzlj@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/conf.h')
-rw-r--r-- | src/pacman/conf.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pacman/conf.h b/src/pacman/conf.h index 6cabd33e..dcd32040 100644 --- a/src/pacman/conf.h +++ b/src/pacman/conf.h @@ -22,6 +22,18 @@ #include <alpm.h> +typedef struct __colstr_t { + const char *colon; + const char *title; + const char *repo; + const char *version; + const char *groups; + const char *meta; + const char *warn; + const char *err; + const char *nocolor; +} colstr_t; + typedef struct __config_t { unsigned short op; unsigned short quiet; @@ -98,6 +110,9 @@ typedef struct __config_t { alpm_list_t *explicit_adds; alpm_list_t *explicit_removes; + + /* Color strings for output */ + colstr_t colstr; } config_t; /* Operations */ @@ -156,6 +171,7 @@ enum { /* global config variable */ extern config_t *config; +void enable_colors(int colors); config_t *config_new(void); int config_free(config_t *oldconfig); |