summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/libsmartcols.h.in
diff options
context:
space:
mode:
authorKarel Zak2016-02-09 11:21:21 +0100
committerKarel Zak2016-02-09 11:21:21 +0100
commite865838d6ddcb0fed74e3819b503c6f7ccad452b (patch)
treeca7c032bcdc799177db7ab5781cb6e95bdf756dc /libsmartcols/src/libsmartcols.h.in
parentlibfdisk: add missing break (diff)
downloadkernel-qcow2-util-linux-e865838d6ddcb0fed74e3819b503c6f7ccad452b.tar.gz
kernel-qcow2-util-linux-e865838d6ddcb0fed74e3819b503c6f7ccad452b.tar.xz
kernel-qcow2-util-linux-e865838d6ddcb0fed74e3819b503c6f7ccad452b.zip
libsmartcols: use libscols_cell for title
References: https://github.com/karelzak/util-linux/issues/270 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/libsmartcols.h.in')
-rw-r--r--libsmartcols/src/libsmartcols.h.in16
1 files changed, 8 insertions, 8 deletions
diff --git a/libsmartcols/src/libsmartcols.h.in b/libsmartcols/src/libsmartcols.h.in
index 9849a2cfb..b98f406a7 100644
--- a/libsmartcols/src/libsmartcols.h.in
+++ b/libsmartcols/src/libsmartcols.h.in
@@ -88,12 +88,12 @@ enum {
};
/*
- * Position of table's title
+ * Cell flags, see scols_cell_set_flags() before use
*/
enum {
- SCOLS_TITLE_LEFT = 0,
- SCOLS_TITLE_CENTER,
- SCOLS_TITLE_RIGHT
+ SCOLS_CELL_FL_LEFT = 0,
+ SCOLS_CELL_FL_CENTER,
+ SCOLS_CELL_FL_RIGHT
};
extern struct libscols_iter *scols_new_iter(int direction);
@@ -128,6 +128,9 @@ extern const char *scols_cell_get_data(const struct libscols_cell *ce);
extern int scols_cell_set_color(struct libscols_cell *ce, const char *color);
extern const char *scols_cell_get_color(const struct libscols_cell *ce);
+extern int scols_cell_set_flags(struct libscols_cell *ce, int flags);
+extern int scols_cell_get_flags(const struct libscols_cell *ce);
+
extern void *scols_cell_get_userdata(struct libscols_cell *ce);
extern int scols_cell_set_userdata(struct libscols_cell *ce, void *data);
@@ -189,10 +192,7 @@ extern struct libscols_line *scols_copy_line(struct libscols_line *ln);
/* table */
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 struct libscols_cell *scols_table_get_title(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);