]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: add scols_sort_table()
authorKarel Zak <kzak@redhat.com>
Tue, 20 May 2014 13:04:11 +0000 (15:04 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 20 May 2014 13:04:11 +0000 (15:04 +0200)
commit57a86f9bff68f24b167df9c571a09c6b89712296
treeb5872b3929c083b96c14fa0140157c59f8e78d2d
parent2832032772bb8d0a6ec9dda84c23db5d60a9f700
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>
libsmartcols/docs/libsmartcols-sections.txt
libsmartcols/src/cell.c
libsmartcols/src/column.c
libsmartcols/src/libsmartcols.h.in
libsmartcols/src/libsmartcols.sym
libsmartcols/src/line.c
libsmartcols/src/smartcolsP.h
libsmartcols/src/table.c