X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=list.h;h=225f54f74af9e2fa44490e991c98e67572d23c52;hb=refs%2Fheads%2Fmaint-1.6;hp=6b165d33eb8f3e7429a61b8e559dc867cbf502ae;hpb=d3815dfd3e7f48e0c47499acc173809d973a4ad6;p=radsecproxy.git diff --git a/list.h b/list.h index 6b165d3..225f54f 100644 --- a/list.h +++ b/list.h @@ -28,6 +28,9 @@ struct list *list_create(); /* frees all memory associated with the list */ void list_destroy(struct list *list); +/* frees memory allocated for the list itself */ +void list_free(struct list *list); + /* appends entry to list; returns 1 if ok, 0 if malloc fails */ int list_push(struct list *list, void *data); @@ -45,3 +48,7 @@ struct list_node *list_next(struct list_node *node); /* returns number of nodes */ uint32_t list_count(struct list *list); + +/* Local Variables: */ +/* c-file-style: "stroustrup" */ +/* End: */