From 57a86f9bff68f24b167df9c571a09c6b89712296 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 20 May 2014 15:04:11 +0200 Subject: 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 Signed-off-by: Shakur Shams Mullick Signed-off-by: Karel Zak Signed-off-by: Karel Zak --- libsmartcols/docs/libsmartcols-sections.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libsmartcols/docs') 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 @@ -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 -- cgit v1.2.3-55-g7522