diff options
author | Karel Zak | 2014-05-20 15:04:11 +0200 |
---|---|---|
committer | Karel Zak | 2014-05-20 15:04:11 +0200 |
commit | 57a86f9bff68f24b167df9c571a09c6b89712296 (patch) | |
tree | b5872b3929c083b96c14fa0140157c59f8e78d2d /libsmartcols/src/libsmartcols.sym | |
parent | setterm: fix 'bright' in usage, remove unnecessary error message (diff) | |
download | kernel-qcow2-util-linux-57a86f9bff68f24b167df9c571a09c6b89712296.tar.gz kernel-qcow2-util-linux-57a86f9bff68f24b167df9c571a09c6b89712296.tar.xz kernel-qcow2-util-linux-57a86f9bff68f24b167df9c571a09c6b89712296.zip |
libsmartcols: add scols_sort_table()
* add pointer to column cmp() function [scols_column_set_cmpfunc()]
* allow to store per-cell application private data
(to make it possible to sort tables on data independent on cell
output data) [scols_cell_set_userdata() ...]
* make it possible to access line cell by column
[scols_line_get_column_cell()]
Sort and cmp() stuff based on patches from Shakur Shams Mullick.
Co-Author: Shakur Shams Mullick <shakursmullick@gmail.com>
Signed-off-by: Shakur Shams Mullick <shakursmullick@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/libsmartcols.sym')
-rw-r--r-- | libsmartcols/src/libsmartcols.sym | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libsmartcols/src/libsmartcols.sym b/libsmartcols/src/libsmartcols.sym index 4b64f280c..a4de524f4 100644 --- a/libsmartcols/src/libsmartcols.sym +++ b/libsmartcols/src/libsmartcols.sym @@ -6,9 +6,12 @@ global: scols_cell_copy_content; scols_cell_get_color; scols_cell_get_data; + scols_cell_get_userdata; scols_cell_refer_data; scols_cell_set_color; scols_cell_set_data; + scols_cell_set_userdata; + scols_cmpstr_cells; scols_column_get_color; scols_column_get_flags; scols_column_get_header; @@ -18,6 +21,7 @@ global: scols_column_is_strict_width; scols_column_is_tree; scols_column_is_trunc; + scols_column_set_cmpfunc; scols_column_set_color; scols_column_set_flags; scols_column_set_whint; @@ -34,6 +38,7 @@ global: scols_line_free_cells; scols_line_get_cell; scols_line_get_color; + scols_line_get_column_cell; scols_line_get_ncells; scols_line_get_parent; scols_line_get_userdata; @@ -58,6 +63,7 @@ global: scols_ref_table; scols_reset_cell; scols_reset_iter; + scols_sort_table; scols_symbols_set_branch; scols_symbols_set_right; scols_symbols_set_vertical; |