diff options
author | Karel Zak | 2016-09-13 14:06:01 +0200 |
---|---|---|
committer | Karel Zak | 2016-09-13 14:06:01 +0200 |
commit | 19055a25ed2a28d005460ee41627d2595ae7ad34 (patch) | |
tree | ff37d6bd2ff5f214d74d305723bad0b83fe15319 /libsmartcols/src/libsmartcols.h.in | |
parent | libsmartcols: add application to test library features (diff) | |
download | kernel-qcow2-util-linux-19055a25ed2a28d005460ee41627d2595ae7ad34.tar.gz kernel-qcow2-util-linux-19055a25ed2a28d005460ee41627d2595ae7ad34.tar.xz kernel-qcow2-util-linux-19055a25ed2a28d005460ee41627d2595ae7ad34.zip |
libsmartcols: add functions to control terminal usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/libsmartcols.h.in')
-rw-r--r-- | libsmartcols/src/libsmartcols.h.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libsmartcols/src/libsmartcols.h.in b/libsmartcols/src/libsmartcols.h.in index 1165e0c2d..41f514d71 100644 --- a/libsmartcols/src/libsmartcols.h.in +++ b/libsmartcols/src/libsmartcols.h.in @@ -246,6 +246,20 @@ extern int scols_table_reduce_termwidth(struct libscols_table *tb, size_t reduce extern int scols_sort_table(struct libscols_table *tb, struct libscols_column *cl); +/* + * + */ +enum { + SCOLS_TERMFORCE_AUTO = 0, + SCOLS_TERMFORCE_NEVER, + SCOLS_TERMFORCE_ALWAYS +}; +extern int scols_table_set_termforce(struct libscols_table *tb, int force); +extern int scols_table_get_termforce(struct libscols_table *tb); +extern int scols_table_set_termwidth(struct libscols_table *tb, size_t width); +extern size_t scols_table_get_termwidth(struct libscols_table *tb); + + /* table_print.c */ extern int scols_print_table(struct libscols_table *tb); extern int scols_print_table_to_string(struct libscols_table *tb, char **data); |