summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/smartcolsP.h
diff options
context:
space:
mode:
authorKarel Zak2016-02-10 15:25:38 +0100
committerKarel Zak2016-02-10 15:34:21 +0100
commitd94c519877278124691be5ea3c8dbc729c1962e5 (patch)
tree3f9e598d652051a2f9bc29d3eb49e1deb096f87f /libsmartcols/src/smartcolsP.h
parentlibsmartcols: use libscols_cell for title (diff)
downloadkernel-qcow2-util-linux-d94c519877278124691be5ea3c8dbc729c1962e5.tar.gz
kernel-qcow2-util-linux-d94c519877278124691be5ea3c8dbc729c1962e5.tar.xz
kernel-qcow2-util-linux-d94c519877278124691be5ea3c8dbc729c1962e5.zip
libsmartcols: support multi-line cells
The initial implementation has been introduced by SCOLS_FL_WRAP columns, but this patch clean ups all and makes things more elegant. Note that use SCOLS_FL_TREE | SCOLS_FL_WRAP for a column is bad idea and I don't think we need to fix it. References: https://github.com/karelzak/util-linux/issues/269 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/smartcolsP.h')
-rw-r--r--libsmartcols/src/smartcolsP.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libsmartcols/src/smartcolsP.h b/libsmartcols/src/smartcolsP.h
index 7fe6db467..5add21849 100644
--- a/libsmartcols/src/smartcolsP.h
+++ b/libsmartcols/src/smartcolsP.h
@@ -84,6 +84,10 @@ struct libscols_column {
int is_extreme;
char *color; /* default column color */
+ char *pending_data;
+ size_t pending_data_sz;
+ char *pending_data_buf;
+
int (*cmpfunc)(struct libscols_cell *,
struct libscols_cell *,
void *); /* cells comparison function */