summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/line.c
diff options
context:
space:
mode:
authorKarel Zak2014-04-07 14:07:49 +0200
committerKarel Zak2014-04-07 14:07:49 +0200
commite2310281c74bfaae4d3618ddd5d0568c494eda6a (patch)
tree04d5c5bc739c38f1cb5f67e6c77e0e91039e0313 /libsmartcols/src/line.c
parentlibsmartcols: add debug and version functions (diff)
downloadkernel-qcow2-util-linux-e2310281c74bfaae4d3618ddd5d0568c494eda6a.tar.gz
kernel-qcow2-util-linux-e2310281c74bfaae4d3618ddd5d0568c494eda6a.tar.xz
kernel-qcow2-util-linux-e2310281c74bfaae4d3618ddd5d0568c494eda6a.zip
libsmartcols: improve docs
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/line.c')
-rw-r--r--libsmartcols/src/line.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libsmartcols/src/line.c b/libsmartcols/src/line.c
index 931cc0821..686a11945 100644
--- a/libsmartcols/src/line.c
+++ b/libsmartcols/src/line.c
@@ -106,7 +106,10 @@ void scols_line_free_cells(struct libscols_line *ln)
* @ln: a pointer to a struct libscols_line instance
* @n: the number of elements
*
- * Allocates space for @n cells.
+ * Allocates space for @n cells. This function is optional,
+ * and libsmartcols automatically allocates necessary cells
+ * according to number of columns in the table when you add
+ * the line to the table. See scols_table_add_line().
*
* Returns: 0, a negative value in case of an error.
*/
@@ -369,7 +372,7 @@ int scols_line_set_data(struct libscols_line *ln, size_t n, const char *data)
}
/**
- * scols_line_set_data:
+ * scols_line_refer_data:
* @ln: a pointer to a struct libscols_cell instance
* @n: number of the cell which will refer to @data
* @data: actual data to refer to