summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/smartcolsP.h
diff options
context:
space:
mode:
authorKarel Zak2016-02-09 11:21:21 +0100
committerKarel Zak2016-02-09 11:21:21 +0100
commite865838d6ddcb0fed74e3819b503c6f7ccad452b (patch)
treeca7c032bcdc799177db7ab5781cb6e95bdf756dc /libsmartcols/src/smartcolsP.h
parentlibfdisk: add missing break (diff)
downloadkernel-qcow2-util-linux-e865838d6ddcb0fed74e3819b503c6f7ccad452b.tar.gz
kernel-qcow2-util-linux-e865838d6ddcb0fed74e3819b503c6f7ccad452b.tar.xz
kernel-qcow2-util-linux-e865838d6ddcb0fed74e3819b503c6f7ccad452b.zip
libsmartcols: use libscols_cell for title
References: https://github.com/karelzak/util-linux/issues/270 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/smartcolsP.h')
-rw-r--r--libsmartcols/src/smartcolsP.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libsmartcols/src/smartcolsP.h b/libsmartcols/src/smartcolsP.h
index 99383633b..7fe6db467 100644
--- a/libsmartcols/src/smartcolsP.h
+++ b/libsmartcols/src/smartcolsP.h
@@ -62,6 +62,7 @@ struct libscols_cell {
char *data;
char *color;
void *userdata;
+ int flags;
};
@@ -127,7 +128,6 @@ enum {
struct libscols_table {
int refcount;
char *name; /* optional table name (for JSON) */
- char *title; /* optional table title (for humans) */
size_t ncols; /* number of columns */
size_t ntreecols; /* number of columns with SCOLS_FL_TREE */
size_t nlines; /* number of lines */
@@ -141,6 +141,7 @@ struct libscols_table {
struct list_head tb_columns;
struct list_head tb_lines;
struct libscols_symbols *symbols;
+ struct libscols_cell title; /* optional table title (for humans) */
int indent; /* indention counter */
int indent_last_sep;/* last printed has been line separator */
@@ -153,8 +154,6 @@ struct libscols_table {
maxout :1, /* maximalize output */
no_headings :1, /* don't print header */
no_wrap :1; /* never wrap lines */
- unsigned int title_pos; /* title position */
- char *title_color; /* title color */
};
#define IS_ITER_FORWARD(_i) ((_i)->direction == SCOLS_ITER_FORWARD)