Lines Matching refs:list

12 - doubly linked list
18 #include "internal/list.h"
24 void ossl_list_TYPE_init(OSSL_LIST(name) *list);
27 int ossl_list_TYPE_is_empty(const OSSL_LIST(name) *list);
28 size_t ossl_list_TYPE_num(const OSSL_LIST(name) *list);
29 type *ossl_list_TYPE_head(const OSSL_LIST(name) *list);
30 type *ossl_list_TYPE_tail(const OSSL_LIST(name) *list);
35 void ossl_list_TYPE_remove(OSSL_LIST(name) *list, type *elem);
36 void ossl_list_TYPE_insert_head(OSSL_LIST(name) *list, type *elem);
37 void ossl_list_TYPE_insert_tail(OSSL_LIST(name) *list, type *elem);
38 void ossl_list_TYPE_insert_before(OSSL_LIST(name) *list, type *existing,
40 void ossl_list_TYPE_insert_after(OSSL_LIST(name) *list, type *existing, type *elem);
44 Create type safe linked list. These macros define typesafe inline
45 functions that implement the various list operations. In the description
50 The OSSL_LIST() macro returns the name for a list of the specified
53 DEFINE_LIST_OF() creates a set of functions for a list of B<I<TYPE>>
56 B<ossl_list_I<TYPE>_>. The list's linkages are stored in the
59 B<ossl_list_I<TYPE>_init>() initialises the memory pointed to by I<list>
60 to zero which creates an empty list.
62 B<ossl_list_I<TYPE>_init_elem>() initialises the list related memory pointed
65 B<ossl_list_I<TYPE>_is_empty>() returns nonzero if I<list> has no elements and
68 B<ossl_list_I<TYPE>_num>() returns the number of elements in I<list>.
70 B<ossl_list_I<TYPE>_head>() returns the first element in the I<list>
73 B<ossl_list_I<TYPE>_tail>() returns the last element in the I<list>
77 the I<list>. It is illegal to remove an element that isn't in the list.
80 must not be in the list, into the first position in the I<list>.
83 must not be in the list, into the last position in the I<list>.
86 which must not be in the list, into the I<list> immediately before the
90 which must not be in the list, into the I<list> immediately after the
95 B<ossl_list_I<TYPE>_is_empty>() returns nonzero if the list is empty and zero
99 list.
103 the specified element in the list.