23RCSID(
"$Id: f04eced2bbb595f01a1ea8080899f48242136449 $")
25#include <freeradius-devel/util/rb_expire.h>
72 if (old->when > now)
break;
static fr_dlist_t * fr_dlist_item_to_entry(size_t offset, void const *item)
Find the dlist pointers within a list item.
unsigned int offset
Positive offset from start of structure to fr_dlist_t.
static void * fr_dlist_remove(fr_dlist_head_t *list_head, void *ptr)
Remove an item from the list.
static int fr_dlist_insert_tail(fr_dlist_head_t *list_head, void *ptr)
Insert an item into the tail of a list.
fr_dlist_t entry
Struct holding the head and tail of the list.
#define fr_dlist_foreach_safe(_list_head, _type, _iter)
Iterate over the contents of a list allowing for removals.
Entry in a doubly linked list.
bool fr_rb_insert(fr_rb_tree_t *tree, void const *data)
Insert data into a tree.
bool fr_rb_delete(fr_rb_tree_t *tree, void const *data)
Remove node and free data (if a free function was specified)
bool fr_rb_expire_insert(fr_rb_expire_t *expire, void *data, fr_time_t now)
Attempt to find current data in the tree, if it does not exist insert it.
void fr_rb_expire_update(fr_rb_expire_t *expire, void *data, fr_time_t now)
dlist for expiring old entries
static fr_time_t fr_time_add_time_delta(fr_time_t a, fr_time_delta_t b)