summaryrefslogtreecommitdiffstats
path: root/src/shared/format-table.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-07 17:41:32 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-30 16:46:10 +0100
commita2c73e2d3823e878de7a7ee193631108c5fc5be0 (patch)
tree5021a744ed4bd0497820f649764a6da5bfc5471c /src/shared/format-table.h
parentformat-table: add option to store/format percent and uint64_t values in cells (diff)
downloadsystemd-a2c73e2d3823e878de7a7ee193631108c5fc5be0.tar.xz
systemd-a2c73e2d3823e878de7a7ee193631108c5fc5be0.zip
format-table: optionally allow reversing the sort order for a column
Diffstat (limited to '')
-rw-r--r--src/shared/format-table.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/format-table.h b/src/shared/format-table.h
index 2db2084062..07cb2351cb 100644
--- a/src/shared/format-table.h
+++ b/src/shared/format-table.h
@@ -53,6 +53,7 @@ void table_set_header(Table *table, bool b);
void table_set_width(Table *t, size_t width);
int table_set_display(Table *t, size_t first_column, ...);
int table_set_sort(Table *t, size_t first_column, ...);
+int table_set_reverse(Table *t, size_t column, bool b);
int table_print(Table *t, FILE *f);
int table_format(Table *t, char **ret);