diff options
author | Karel Zak | 2018-04-03 15:08:40 +0200 |
---|---|---|
committer | Karel Zak | 2018-04-03 15:10:10 +0200 |
commit | b2c871f97844f6be248a417c2482d0665edc0cfe (patch) | |
tree | 86f6d6b077f460664bb8c377adccbadf52bf8e4c /libsmartcols/src/smartcolsP.h | |
parent | docs: add choom to TODO (diff) | |
download | kernel-qcow2-util-linux-b2c871f97844f6be248a417c2482d0665edc0cfe.tar.gz kernel-qcow2-util-linux-b2c871f97844f6be248a417c2482d0665edc0cfe.tar.xz kernel-qcow2-util-linux-b2c871f97844f6be248a417c2482d0665edc0cfe.zip |
libsmartcols: improve JSON support (add types)
This commit add SCOLS_JSON_{NUMBER,STRING,BOOLEAN} to specify column
type for JSON output formatting.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/smartcolsP.h')
-rw-r--r-- | libsmartcols/src/smartcolsP.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsmartcols/src/smartcolsP.h b/libsmartcols/src/smartcolsP.h index 510e7a980..f45ac3a24 100644 --- a/libsmartcols/src/smartcolsP.h +++ b/libsmartcols/src/smartcolsP.h @@ -86,6 +86,8 @@ struct libscols_column { size_t width_treeart; /* size of the tree ascii art */ double width_hint; /* hint (N < 1 is in percent of termwidth) */ + int json_type; /* SCOLS_JSON_* */ + int flags; int is_extreme; char *color; /* default column color */ |