Free nodes of a lif_dict_find_all() result.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
parent
73f3690432
commit
9d958892ed
3 changed files with 33 additions and 2 deletions
|
|
@ -3,6 +3,7 @@
|
|||
* Purpose: linked lists
|
||||
*
|
||||
* Copyright (c) 2020 Ariadne Conill <ariadne@dereferenced.org>
|
||||
* Copyright (c) 2020 Maximilian Wilhelm <max@sdn.clinic>
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
|
|
@ -29,6 +30,8 @@ struct lif_list {
|
|||
size_t length;
|
||||
};
|
||||
|
||||
extern void lif_list_free_nodes(struct lif_list **list);
|
||||
|
||||
extern void lif_node_insert(struct lif_node *node, void *data, struct lif_list *list);
|
||||
extern void lif_node_insert_tail(struct lif_node *node, void *data, struct lif_list *list);
|
||||
extern void lif_node_delete(struct lif_node *node, struct lif_list *list);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue