X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Flist.h;h=8bd2f168fb87b1285e4ae35a25170fd31699d1a8;hb=d93d4f9dbd09bc5e53a9b5eeb1cc94939fee32bc;hp=e605ce1058c75ad2c61ada93941f1f8afdc2cc2a;hpb=3d787920d51a35e74e442c7265be3b13b69ad8e4;p=tinc diff --git a/src/list.h b/src/list.h index e605ce10..8bd2f168 100644 --- a/src/list.h +++ b/src/list.h @@ -45,10 +45,11 @@ typedef struct list_t { /* (De)constructors */ -extern list_t *list_alloc(list_action_t delete) ATTR_MALLOC; extern void list_free(list_t *list); -extern list_node_t *list_alloc_node(void); +extern list_t *list_alloc(list_action_t delete) ATTR_MALLOC ATTR_DEALLOCATOR(list_free); + extern void list_free_node(list_t *list, list_node_t *node); +extern list_node_t *list_alloc_node(void) ATTR_MALLOC ATTR_DEALLOCATOR(list_free_node); /* Insertion and deletion */