The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Functions to iterate over a sets and subsets of items in dlists. More...
#include <string.h>
#include <stdint.h>
#include <freeradius-devel/util/dcursor.h>
#include <freeradius-devel/util/pair.h>
Go to the source code of this file.
Functions | |
void * | fr_dcursor_intersect_head (fr_dcursor_t *a, fr_dcursor_t *b) |
Return the first item matching the iterator in cursor a and cursor b. More... | |
void * | fr_dcursor_intersect_next (fr_dcursor_t *a, fr_dcursor_t *b) |
Return the next item matching the iterator in cursor a and cursor b. More... | |
Functions to iterate over a sets and subsets of items in dlists.
Definition in file dcursor.c.
void* fr_dcursor_intersect_head | ( | fr_dcursor_t * | a, |
fr_dcursor_t * | b | ||
) |
Return the first item matching the iterator in cursor a and cursor b.
If a and b are not currently set to the same item, b will be reset, and wound to the item before a's current item.
[in] | a | First cursor. |
[in] | b | Second cursor. |
Definition at line 47 of file dcursor.c.
void* fr_dcursor_intersect_next | ( | fr_dcursor_t * | a, |
fr_dcursor_t * | b | ||
) |
Return the next item matching the iterator in cursor a and cursor b.
If a and b are not currently set to the same item, b will be reset, and wound to the item before a's current item.
The purpose of this function is to return items that match both iterators.
[in] | a | First cursor. |
[in] | b | Second cursor. |
Definition at line 76 of file dcursor.c.