Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
extern int scols_table_is_empty(const struct libscols_table *tb);
extern int scols_table_is_export(const struct libscols_table *tb);
extern int scols_table_is_maxout(const struct libscols_table *tb);
+extern int scols_table_is_nowrap(const struct libscols_table *tb);
extern int scols_table_is_tree(const struct libscols_table *tb);
extern int scols_table_enable_colors(struct libscols_table *tb, int enable);
scols_table_set_termforce;
scols_table_set_termwidth;
scols_table_get_name;
+ scols_table_is_nowrap;
} SMARTCOLS_2.28;
return 0;
}
+/**
+ * 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
* 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)
{