diff options
author | Karel Zak | 2010-11-18 21:04:13 +0100 |
---|---|---|
committer | Karel Zak | 2010-11-24 17:08:31 +0100 |
commit | 3e451589d5eaecfa8ddff46877f94ad79bc010f0 (patch) | |
tree | d542e4b49c01a6105e5d70256470b0ca86b74722 /include/tt.h | |
parent | lib: [ismounted] don't wast time with mtab is /proc/mounts used (diff) | |
download | kernel-qcow2-util-linux-3e451589d5eaecfa8ddff46877f94ad79bc010f0.tar.gz kernel-qcow2-util-linux-3e451589d5eaecfa8ddff46877f94ad79bc010f0.tar.xz kernel-qcow2-util-linux-3e451589d5eaecfa8ddff46877f94ad79bc010f0.zip |
lib: [tt] add TT_FL_RIGHT, add columns list parser
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/tt.h')
-rw-r--r-- | include/tt.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/tt.h b/include/tt.h index bf24d550c..e6a63ed37 100644 --- a/include/tt.h +++ b/include/tt.h @@ -12,11 +12,12 @@ #include "list.h" enum { - TT_FL_TRUNCATE = (1 << 1), + TT_FL_TRUNC = (1 << 1), TT_FL_TREE = (1 << 2), TT_FL_RAW = (1 << 3), TT_FL_ASCII = (1 << 4), - TT_FL_NOHEADINGS = (1 << 5) + TT_FL_NOHEADINGS = (1 << 5), + TT_FL_RIGHT = (1 << 6), }; struct tt { @@ -68,4 +69,7 @@ extern struct tt_line *tt_add_line(struct tt *tb, struct tt_line *parent); extern int tt_line_set_data(struct tt_line *ln, int colnum, const char *data); +extern int tt_parse_columns_list(const char *list, int cols[], int *ncols, + int (name2id)(const char *, size_t)); + #endif /* UTIL_LINUX_TT_H */ |