diff options
author | Karel Zak | 2014-03-18 12:39:54 +0100 |
---|---|---|
committer | Karel Zak | 2014-04-03 12:29:16 +0200 |
commit | 74bd28ad6eadd0d51fb8da5003332eb3255f88eb (patch) | |
tree | 32bfdf8ed7c3a46038be19bfec932133f8cb4821 /libsmartcols/src/smartcolsP.h | |
parent | libsmartcols: add columns (diff) | |
download | kernel-qcow2-util-linux-74bd28ad6eadd0d51fb8da5003332eb3255f88eb.tar.gz kernel-qcow2-util-linux-74bd28ad6eadd0d51fb8da5003332eb3255f88eb.tar.xz kernel-qcow2-util-linux-74bd28ad6eadd0d51fb8da5003332eb3255f88eb.zip |
libsmartcols: add lines
Co-Author: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/smartcolsP.h')
-rw-r--r-- | libsmartcols/src/smartcolsP.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libsmartcols/src/smartcolsP.h b/libsmartcols/src/smartcolsP.h index 4ee2216bf..f697cc8b9 100644 --- a/libsmartcols/src/smartcolsP.h +++ b/libsmartcols/src/smartcolsP.h @@ -72,5 +72,23 @@ struct libscols_column { struct list_head cl_columns; }; +/* + * Table line + */ +struct libscols_line { + int refcount; + void *userdata; + size_t data_sz; /* strlen of all data */ + char *color; /* default line color */ + + struct libscols_cell **cells; /* array with data */ + size_t ncells; /* number of cells */ + + struct list_head ln_lines; /* table lines */ + struct list_head ln_branch; /* begin of branch (head of ln_children) */ + struct list_head ln_children; + + struct libscols_line *parent; +}; #endif /* _LIBSMARTCOLS_PRIVATE_H */ |