public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/5] libsmartcols/src/libsmartcols.h.in: add function
@ 2014-05-14  5:09 Shakur Shams Mullick
  2014-05-14  5:09 ` [PATCH v3 2/5] libsmartcols/src/libsmartcols.sym: add function symbol Shakur Shams Mullick
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Shakur Shams Mullick @ 2014-05-14  5:09 UTC (permalink / raw)
  To: util-linux; +Cc: Shakur Shams Mullick

Signed-off-by: Shakur Shams Mullick <shakursmullick@gmail.com>
---
 libsmartcols/src/libsmartcols.h.in | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libsmartcols/src/libsmartcols.h.in b/libsmartcols/src/libsmartcols.h.in
index 9468226..5ead53f 100644
--- a/libsmartcols/src/libsmartcols.h.in
+++ b/libsmartcols/src/libsmartcols.h.in
@@ -115,6 +115,8 @@ extern int scols_cell_refer_data(struct libscols_cell *ce, char *str);
 extern const char *scols_cell_get_data(const struct libscols_cell *ce);
 extern int scols_cell_set_color(struct libscols_cell *ce, const char *color);
 extern const char *scols_cell_get_color(const struct libscols_cell *ce);
+extern int scols_cmpstr_cells(struct libscols_cell *a, struct libscols_cell *b, void *data);
+extern int scols_cmpnum_cells(struct libscols_cell *a, struct libscols_cell *b, void *data);
 
 /* column.c */
 extern int scols_column_is_tree(struct libscols_column *cl);
@@ -134,7 +136,9 @@ extern double scols_column_get_whint(struct libscols_column *cl);
 extern struct libscols_cell *scols_column_get_header(struct libscols_column *cl);
 extern int scols_column_set_color(struct libscols_column *cl, const char *color);
 extern const char *scols_column_get_color(struct libscols_column *cl);
-
+extern int scols_column_set_sortcmp(struct libscols_column *cl, 
+	int (*compar)(struct libscols_cell *a, struct libscols_cell *b, void *), void *data);
+	
 /* line.c */
 extern struct libscols_line *scols_new_line(void);
 extern void scols_ref_line(struct libscols_line *ln);
@@ -206,6 +210,7 @@ extern int scols_table_reduce_termwidth(struct libscols_table *tb, size_t reduce
 /* table_print.c */
 extern int scols_print_table(struct libscols_table *tb);
 extern int scols_print_table_to_string(struct libscols_table *tb, char **data);
+extern void scols_sort_table(struct libscols_table *tb, struct libscols_column *cl);
 
 #ifdef __cplusplus
 }
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-05-20 13:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-14  5:09 [PATCH v3 1/5] libsmartcols/src/libsmartcols.h.in: add function Shakur Shams Mullick
2014-05-14  5:09 ` [PATCH v3 2/5] libsmartcols/src/libsmartcols.sym: add function symbol Shakur Shams Mullick
2014-05-14  5:09 ` [PATCH v3 3/5] libsmartcols/src/smartcolsP.h: add field to struct libscols_column Shakur Shams Mullick
2014-05-14  5:09 ` [PATCH v3 4/5] misc-utils/lsblk.c: add sorting support for lsblk command Shakur Shams Mullick
2014-05-14  5:10 ` [PATCH v3 5/5] libsmartcols/src/table_print.c: add sorting for table Shakur Shams Mullick
2014-05-20 13:16 ` [PATCH v3 1/5] libsmartcols/src/libsmartcols.h.in: add function Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox