diff options
Diffstat (limited to 'doc/internal/man3/DEFINE_LIST_OF.pod')
-rw-r--r-- | doc/internal/man3/DEFINE_LIST_OF.pod | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/internal/man3/DEFINE_LIST_OF.pod b/doc/internal/man3/DEFINE_LIST_OF.pod index a0090c7685..311c200b7a 100644 --- a/doc/internal/man3/DEFINE_LIST_OF.pod +++ b/doc/internal/man3/DEFINE_LIST_OF.pod @@ -3,7 +3,8 @@ =head1 NAME DEFINE_LIST_OF, OSSL_LIST_MEMBER, OSSL_LIST, -ossl_list_TYPE_init, ossl_list_TYPE_num, +ossl_list_TYPE_init, ossl_list_TYPE_init_elem, +ossl_list_TYPE_is_empty, ossl_list_TYPE_num, ossl_list_TYPE_head, ossl_list_TYPE_tail, ossl_list_TYPE_next, ossl_list_TYPE_prev, ossl_list_TYPE_remove, ossl_list_TYPE_insert_head, ossl_list_TYPE_insert_tail, @@ -21,7 +22,9 @@ ossl_list_TYPE_insert_before, ossl_list_TYPE_after DEFINE_LIST_OF(NAME, TYPE); void ossl_list_TYPE_init(OSSL_LIST(name) *list); + void ossl_list_TYPE_init_elem(type *elem); + int ossl_list_TYPE_is_empty(const OSSL_LIST(name) *list); size_t ossl_list_TYPE_num(const OSSL_LIST(name) *list); type *ossl_list_TYPE_head(const OSSL_LIST(name) *list); type *ossl_list_TYPE_tail(const OSSL_LIST(name) *list); @@ -56,6 +59,12 @@ B<OSSL_LIST_MEMBER>(B<I<NAME>>, B<I<TYPE>>) field. B<ossl_list_I<NAME>_init>() initialises the memory pointed to by I<list> to zero which creates an empty list. +B<ossl_list_I<NAME>_init_elem>() initialises the list related memory pointed +to by I<elem> to zero which allows it to be used in lists. + +B<ossl_list_I<NAME>_is_empty>() returns nonzero if I<list> has no elements and +zero otherwise. + B<ossl_list_I<NAME>_num>() returns the number of elements in I<list>. B<ossl_list_I<NAME>_head>() returns the first element in the I<list> @@ -83,6 +92,9 @@ I<existing> element. =head1 RETURN VALUES +B<ossl_list_I<NAME>_is_empty>() returns nonzero if the list is empty and zero +otherwise. + B<ossl_list_I<NAME>_num>() returns the number of elements in the list. |