mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-12 03:00:26 +09:00
misc: Document ssh_list_append()
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
10
src/misc.c
10
src/misc.c
@@ -814,6 +814,16 @@ static struct ssh_iterator *ssh_iterator_new(const void *data)
|
|||||||
return iterator;
|
return iterator;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*
|
||||||
|
* @brief Appends an element to the end of the list.
|
||||||
|
*
|
||||||
|
* @param[in] list The list to append the element
|
||||||
|
* @param[in] data The element to append
|
||||||
|
*
|
||||||
|
* @return `SSH_OK` on success, `SSH_ERROR` on error
|
||||||
|
*/
|
||||||
int ssh_list_append(struct ssh_list *list, const void *data)
|
int ssh_list_append(struct ssh_list *list, const void *data)
|
||||||
{
|
{
|
||||||
struct ssh_iterator *iterator = NULL;
|
struct ssh_iterator *iterator = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user