mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +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:
12
src/misc.c
12
src/misc.c
@@ -814,7 +814,17 @@ static struct ssh_iterator *ssh_iterator_new(const void *data)
|
|||||||
return iterator;
|
return iterator;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ssh_list_append(struct ssh_list *list,const void *data)
|
/**
|
||||||
|
* @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)
|
||||||
{
|
{
|
||||||
struct ssh_iterator *iterator = NULL;
|
struct ssh_iterator *iterator = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user