From c987fd8c53b4ebabd8ca3d9b32216ac7f7ba6a9e Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 1 Mar 2010 18:11:40 +0100 Subject: renamed ssh_list_get_head to ssh_list_pop_head --- libssh/misc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libssh/misc.c') diff --git a/libssh/misc.c b/libssh/misc.c index f64c395..a86a163 100644 --- a/libssh/misc.c +++ b/libssh/misc.c @@ -261,7 +261,14 @@ void ssh_list_remove(struct ssh_list *list, struct ssh_iterator *iterator){ SAFE_FREE(iterator); } -const void *_ssh_list_get_head(struct ssh_list *list){ +/** @internal + * @brief Removes the top element of the list and returns the data value attached + * to it + * @param list the ssh_list + * @returns pointer to the element being stored in head, or + * NULL if the list is empty. + */ +const void *_ssh_list_pop_head(struct ssh_list *list){ struct ssh_iterator *iterator=list->root; const void *data; if(!list->root) -- cgit