summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKarel Zak2011-04-27 17:15:36 +0200
committerKarel Zak2011-04-27 17:15:36 +0200
commitce56db846681ee5035411c63d3223424f224c7c8 (patch)
tree99cd30b41737801c7832c56e3f2263fe16708418 /include
parentlibmount: add mnt_tabdiff_* functions (diff)
downloadkernel-qcow2-util-linux-ce56db846681ee5035411c63d3223424f224c7c8.tar.gz
kernel-qcow2-util-linux-ce56db846681ee5035411c63d3223424f224c7c8.tar.xz
kernel-qcow2-util-linux-ce56db846681ee5035411c63d3223424f224c7c8.zip
lib: [tt.c] support fixed width and multiple tt_print_table() calls
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/tt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/tt.h b/include/tt.h
index 400d6ba5e..569e81b3a 100644
--- a/include/tt.h
+++ b/include/tt.h
@@ -18,12 +18,14 @@ enum {
TT_FL_ASCII = (1 << 4),
TT_FL_NOHEADINGS = (1 << 5),
TT_FL_RIGHT = (1 << 6),
+ TT_FL_STRICTWIDTH = (1 << 7)
};
struct tt {
int ncols; /* number of columns */
int termwidth; /* terminal width */
int flags;
+ int first_run;
struct list_head tb_columns;
struct list_head tb_lines;
@@ -60,6 +62,7 @@ struct tt_line {
extern struct tt *tt_new_table(int flags);
extern void tt_free_table(struct tt *tb);
+extern void tt_remove_lines(struct tt *tb);
extern int tt_print_table(struct tt *tb);
extern struct tt_column *tt_define_column(struct tt *tb, const char *name,