From fa4e6939838fbdf2f054451fccd85b93850d0b32 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 23 Oct 2023 13:37:51 +0200 Subject: [PATCH] libsmartcols: add new functions to API docs Signed-off-by: Karel Zak --- libsmartcols/docs/libsmartcols-sections.txt | 5 +++++ libsmartcols/src/cell.c | 4 ++++ libsmartcols/src/column.c | 2 ++ 3 files changed, 11 insertions(+) diff --git a/libsmartcols/docs/libsmartcols-sections.txt b/libsmartcols/docs/libsmartcols-sections.txt index fd6f2ba92a..78b2e65c79 100644 --- a/libsmartcols/docs/libsmartcols-sections.txt +++ b/libsmartcols/docs/libsmartcols-sections.txt @@ -5,9 +5,11 @@ scols_cell_copy_content scols_cell_get_alignment scols_cell_get_color scols_cell_get_data +scols_cell_get_datasiz scols_cell_get_flags scols_cell_get_userdata scols_cell_refer_data +scols_cell_refer_memory scols_cell_set_color scols_cell_set_data scols_cell_set_flags @@ -29,6 +31,7 @@ scols_column_get_safechars scols_column_get_table scols_column_get_whint scols_column_get_width +scols_column_get_wrap_data scols_column_is_customwrap scols_column_is_hidden scols_column_is_noextremes @@ -52,6 +55,7 @@ scols_ref_column scols_unref_column scols_wrapnl_chunksize scols_wrapnl_nextchunk +scols_wrapzero_nextchunk
@@ -146,6 +150,7 @@ scols_table_enable_shellvar scols_table_get_column scols_table_get_column_by_name scols_table_get_column_separator +scols_table_get_cursor scols_table_get_line scols_table_get_line_separator scols_table_get_name diff --git a/libsmartcols/src/cell.c b/libsmartcols/src/cell.c index f2bac54350..f6ceff21d7 100644 --- a/libsmartcols/src/cell.c +++ b/libsmartcols/src/cell.c @@ -108,6 +108,8 @@ int scols_cell_refer_data(struct libscols_cell *ce, char *data) * with string! * * Returns: 0, a negative value in case of an error. + * + * Since: 2.40 */ int scols_cell_refer_memory(struct libscols_cell *ce, char *data, size_t datasiz) { @@ -124,6 +126,8 @@ int scols_cell_refer_memory(struct libscols_cell *ce, char *data, size_t datasiz * @ce: a pointer to a struct libscols_cell instance * * Returns: the current set data size. + * + * Since: 2.40 */ size_t scols_cell_get_datasiz(struct libscols_cell *ce) { diff --git a/libsmartcols/src/column.c b/libsmartcols/src/column.c index cff7d14e74..8a29dac5c8 100644 --- a/libsmartcols/src/column.c +++ b/libsmartcols/src/column.c @@ -539,6 +539,8 @@ int scols_column_set_wrapfunc(struct libscols_column *cl, * This function returns the current status of wrapping cell data (for multi-line cells). * * Returns: 0, a negative value in case of an error. + * + * Since: 2.40 */ int scols_column_get_wrap_data(const struct libscols_column *cl, char **data, size_t *datasiz, char **cur, char **next) -- 2.39.2