27 RCSID(
"$Id: b54fca9beb8aca1564ba60ac5304ac4c59cf4c59 $")
31 #include <freeradius-devel/util/dcursor.h>
32 #include <freeradius-devel/util/pair.h>
49 void *a_item, *b_item;
56 if (a_item == b_item)
return a_item;
78 void *a_next, *b_next;
101 if (a_next == b_next)
return a_next;
106 if (!a_next)
return NULL;
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.
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.
fr_dcursor_iter_t iter
Iterator function.
void * current
The current item in the dlist.
fr_dlist_head_t * dlist
Head of the doubly linked list being iterated over.
static void * fr_dcursor_next(fr_dcursor_t *cursor)
Advanced the cursor to the next item.
static void * fr_dcursor_head(fr_dcursor_t *cursor)
Rewind cursor to the start of the list.