diff options
author | Tobias Brunner <tobias@strongswan.org> | 2008-10-14 08:46:31 +0000 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2008-10-14 08:46:31 +0000 |
commit | 1adaa02bb2bcd72ad6d41b22719dba29fd7d57b7 (patch) | |
tree | 03324c1a74ce2f7fff3c0f740ae44b5b06207582 /src/libstrongswan/utils/linked_list.h | |
parent | 9257c3a287ac873a75b5386295e2a06439c66886 (diff) | |
download | strongswan-1adaa02bb2bcd72ad6d41b22719dba29fd7d57b7.tar.bz2 strongswan-1adaa02bb2bcd72ad6d41b22719dba29fd7d57b7.tar.xz |
merging kernel_pfkey plugin back from kernel-interface branch
Diffstat (limited to 'src/libstrongswan/utils/linked_list.h')
-rw-r--r-- | src/libstrongswan/utils/linked_list.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libstrongswan/utils/linked_list.h b/src/libstrongswan/utils/linked_list.h index 214558c01..183f93f96 100644 --- a/src/libstrongswan/utils/linked_list.h +++ b/src/libstrongswan/utils/linked_list.h @@ -130,7 +130,7 @@ struct linked_list_t { * If a compare function is given, it is called for each item, where * the first parameter is the current list item and the second parameter * is the supplied item parameter. - * If compare is NULL, compare is is done by pointer. + * If compare is NULL, compare is done by pointer. * * @param item item to remove/pass to comparator * @param compare compare function, or NULL @@ -179,10 +179,12 @@ struct linked_list_t { * If the supplied function returns TRUE this function returns SUCCESS, and * the current object is returned in the third parameter, otherwise, * the next item is checked. + * + * If match is NULL, *item and the current object are compared. * * @warning Only use pointers as user supplied data. * - * @param match comparison function to call on each object + * @param match comparison function to call on each object, or NULL * @param item the list item, if found * @param ... user data to supply to match function (limited to 5 arguments) * @return SUCCESS if found, NOT_FOUND otherwise @@ -198,9 +200,11 @@ struct linked_list_t { * the current object is returned in the third parameter, otherwise, * the next item is checked. * + * If match is NULL, *item and the current object are compared. + * * @warning Only use pointers as user supplied data. * - * @param match comparison function to call on each object + * @param match comparison function to call on each object, or NULL * @param item the list item, if found * @param ... user data to supply to match function (limited to 5 arguments) * @return SUCCESS if found, NOT_FOUND otherwise |