extern int scols_table_colors_wanted(struct libscols_table *tb);
extern int scols_table_set_name(struct libscols_table *tb, const char *name);
extern int scols_table_set_title(struct libscols_table *tb, const char *title, unsigned int position, const char *color);
+extern const char *scols_table_get_title(struct libscols_table *tb);
+extern unsigned int scols_table_get_title_position(struct libscols_table *tb);
+extern const char *scols_table_get_title_color(struct libscols_table *tb);
extern int scols_table_is_raw(struct libscols_table *tb);
extern int scols_table_is_ascii(struct libscols_table *tb);
extern int scols_table_is_json(struct libscols_table *tb);
scols_symbols_set_title_padding;
scols_table_enable_nowrap;
scols_table_set_title;
+ scols_table_get_title;
+ scols_table_get_title_position;
+ scols_table_get_title_color;
} SMARTCOLS_2.27;
return 0;
}
+/**
+ * scols_table_get_title:
+ * @tb: a pointer to a struct libscols_table instance
+ *
+ * Returns: Title of the table, or %NULL in case of blank title.
+ *
+ * Since: 2.28
+ */
+const char *scols_table_get_title(struct libscols_table *tb)
+{
+ return tb->title;
+}
+
+/**
+ * scols_table_get_title_position:
+ * @tb: a pointer to a struct libscols_table instance
+ *
+ * Returns: Title's position of the table.
+ *
+ * Since: 2.28
+ */
+unsigned int scols_table_get_title_position(struct libscols_table *tb)
+{
+ return tb->title_pos;
+}
+
+/**
+ * scols_table_get_title_color:
+ * @tb: a pointer to a struct libscols_table instance
+ *
+ * Returns: Title's color of the table, or %NULL in case of not set color.
+ *
+ * Since: 2.28
+ */
+const char *scols_table_get_title_color(struct libscols_table *tb)
+{
+ return tb->title_color;
+}
+
/**
* scols_table_add_column:
* @tb: a pointer to a struct libscols_table instance