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/docs | |
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/docs')
-rw-r--r-- | libsmartcols/docs/libsmartcols-sections.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libsmartcols/docs/libsmartcols-sections.txt b/libsmartcols/docs/libsmartcols-sections.txt index 307691e00..b07774783 100644 --- a/libsmartcols/docs/libsmartcols-sections.txt +++ b/libsmartcols/docs/libsmartcols-sections.txt @@ -4,9 +4,12 @@ libscols_cell 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_reset_cell </SECTION> @@ -22,6 +25,7 @@ scols_column_is_right 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 @@ -49,6 +53,7 @@ scols_line_alloc_cells 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 @@ -118,6 +123,7 @@ scols_table_set_column_separator scols_table_set_line_separator scols_table_set_stream scols_table_set_symbols +scols_sort_table scols_unref_table </SECTION> |