The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Red/black expiry tree implementation. More...
#include <freeradius-devel/util/rb_expire.h>
Go to the source code of this file.
Functions | |
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) |
Red/black expiry tree implementation.
Definition in file rb_expire.c.
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.
Any used node will be inserted into the tail of the expire list, and will expire at "now + expire->lifetime".
[in] | expire | to search/insert into. |
[in] | data | to find. |
[in] | now | the current time |
Definition at line 39 of file rb_expire.c.
void fr_rb_expire_update | ( | fr_rb_expire_t * | expire, |
void * | data, | ||
fr_time_t | now | ||
) |