diff options
author | Igor Gnatenko | 2016-09-23 14:20:41 +0200 |
---|---|---|
committer | Igor Gnatenko | 2016-09-23 14:20:41 +0200 |
commit | 8427c2ec9c2f240ba2198883d10b4757b0c425c5 (patch) | |
tree | c96070b3c18d6b6ea85105f6a63cb8b40378dcf8 /libsmartcols/src/table.c | |
parent | libsmartcols: add scols_table_get_name() (diff) | |
download | kernel-qcow2-util-linux-8427c2ec9c2f240ba2198883d10b4757b0c425c5.tar.gz kernel-qcow2-util-linux-8427c2ec9c2f240ba2198883d10b4757b0c425c5.tar.xz kernel-qcow2-util-linux-8427c2ec9c2f240ba2198883d10b4757b0c425c5.zip |
libsmartcols: add scols_table_is_nowrap()
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'libsmartcols/src/table.c')
-rw-r--r-- | libsmartcols/src/table.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/libsmartcols/src/table.c b/libsmartcols/src/table.c index 76b6f0b9d..096730516 100644 --- a/libsmartcols/src/table.c +++ b/libsmartcols/src/table.c @@ -922,6 +922,19 @@ int scols_table_enable_nowrap(struct libscols_table *tb, int enable) } /** + * scols_table_is_nowrap: + * @tb: a pointer to a struct libscols_table instance + * + * Returns: 1 if nowrap is enabled. + * + * Since: 2.29 + */ +int scols_table_is_nowrap(const struct libscols_table *tb) +{ + return tb->no_wrap; +} + +/** * scols_table_colors_wanted: * @tb: table * @@ -936,7 +949,7 @@ int scols_table_colors_wanted(const struct libscols_table *tb) * scols_table_is_empty: * @tb: table * - * Returns: 1 if the table is empty. + * Returns: 1 if the table is empty. */ int scols_table_is_empty(const struct libscols_table *tb) { |