summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/libsmartcols.h.in
diff options
context:
space:
mode:
authorKarel Zak2016-09-19 13:39:03 +0200
committerKarel Zak2016-09-19 13:39:03 +0200
commitd4275a4bde84c9c295859131cd661f165362f9e3 (patch)
tree77113ed543013a846070e44a74212543dc767ac5 /libsmartcols/src/libsmartcols.h.in
parenttests: add columns separator to libsmartcols test (diff)
downloadkernel-qcow2-util-linux-d4275a4bde84c9c295859131cd661f165362f9e3.tar.gz
kernel-qcow2-util-linux-d4275a4bde84c9c295859131cd661f165362f9e3.tar.xz
kernel-qcow2-util-linux-d4275a4bde84c9c295859131cd661f165362f9e3.zip
libsmartcols: cleanup get functions
The patch introduces tiny API changes (int -> size_t) for scols_table_get_ncols scols_table_get_nlines Addresses: https://github.com/karelzak/util-linux/issues/349 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/libsmartcols.h.in')
-rw-r--r--libsmartcols/src/libsmartcols.h.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsmartcols/src/libsmartcols.h.in b/libsmartcols/src/libsmartcols.h.in
index 41f514d71..c5ff17384 100644
--- a/libsmartcols/src/libsmartcols.h.in
+++ b/libsmartcols/src/libsmartcols.h.in
@@ -228,8 +228,8 @@ extern struct libscols_column *scols_table_new_column(struct libscols_table *tb,
extern int scols_table_next_column(struct libscols_table *tb, struct libscols_iter *itr, struct libscols_column **cl);
extern char *scols_table_get_column_separator(struct libscols_table *tb);
extern char *scols_table_get_line_separator(struct libscols_table *tb);
-extern int scols_table_get_ncols(struct libscols_table *tb);
-extern int scols_table_get_nlines(struct libscols_table *tb);
+extern size_t scols_table_get_ncols(struct libscols_table *tb);
+extern size_t scols_table_get_nlines(struct libscols_table *tb);
extern struct libscols_column *scols_table_get_column(struct libscols_table *tb, size_t n);
extern int scols_table_add_line(struct libscols_table *tb, struct libscols_line *ln);
extern int scols_table_remove_line(struct libscols_table *tb, struct libscols_line *ln);