mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
Rename ssh_list_add to ssh_list_append.
This commit is contained in:
@@ -46,7 +46,7 @@ struct ssh_iterator {
|
||||
struct ssh_list *ssh_list_new(void);
|
||||
void ssh_list_free(struct ssh_list *list);
|
||||
struct ssh_iterator *ssh_list_get_iterator(const struct ssh_list *list);
|
||||
int ssh_list_add(struct ssh_list *list, const void *data);
|
||||
int ssh_list_append(struct ssh_list *list, const void *data);
|
||||
int ssh_list_prepend(struct ssh_list *list, const void *data);
|
||||
void ssh_list_remove(struct ssh_list *list, struct ssh_iterator *iterator);
|
||||
|
||||
|
||||
@@ -867,7 +867,7 @@ void message_handle(ssh_session session, uint32_t type){
|
||||
if(!session->ssh_message_list){
|
||||
session->ssh_message_list=ssh_list_new();
|
||||
}
|
||||
ssh_list_add(session->ssh_message_list,msg);
|
||||
ssh_list_append(session->ssh_message_list,msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -222,7 +222,7 @@ static struct ssh_iterator *ssh_iterator_new(const void *data){
|
||||
return iterator;
|
||||
}
|
||||
|
||||
int ssh_list_add(struct ssh_list *list,const void *data){
|
||||
int ssh_list_append(struct ssh_list *list,const void *data){
|
||||
struct ssh_iterator *iterator=ssh_iterator_new(data);
|
||||
if(!iterator)
|
||||
return SSH_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user