The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
AVP privately inlineable manipulation and search API. More...
#include <freeradius-devel/util/pair.h>
#include <freeradius-devel/util/tlist.h>
Go to the source code of this file.
Macros | |
#define | _INLINE |
#define | _PAIR_PRIVATE 1 |
Functions | |
_INLINE void | fr_pair_list_append (fr_pair_list_t *dst, fr_pair_list_t *src) |
Appends a list of fr_pair_t from a temporary list to a destination list. More... | |
_INLINE bool | fr_pair_list_empty (fr_pair_list_t const *list) |
Is a valuepair list empty. More... | |
_INLINE void | fr_pair_list_free (fr_pair_list_t *list) |
Free memory used by a valuepair list. More... | |
_INLINE fr_pair_list_t * | fr_pair_list_from_dlist (fr_dlist_head_t const *list) |
Get the pair list head from a dlist. More... | |
_INLINE fr_pair_t * | fr_pair_list_head (fr_pair_list_t const *list) |
Get the head of a valuepair list. More... | |
_INLINE fr_pair_t * | fr_pair_list_next (fr_pair_list_t const *list, fr_pair_t const *item) |
Get the next item in a valuepair list after a specific entry. More... | |
_INLINE size_t | fr_pair_list_num_elements (fr_pair_list_t const *list) |
Get the length of a list of fr_pair_t. More... | |
_INLINE void | fr_pair_list_prepend (fr_pair_list_t *dst, fr_pair_list_t *src) |
Move a list of fr_pair_t from a temporary list to the head of a destination list. More... | |
_INLINE fr_pair_t * | fr_pair_list_prev (fr_pair_list_t const *list, fr_pair_t const *item) |
Get the previous item in a valuepair list before a specific entry. More... | |
_INLINE void | fr_pair_list_sort (fr_pair_list_t *list, fr_cmp_t cmp) |
Sort a doubly linked list of fr_pair_ts using merge sort. More... | |
_INLINE fr_pair_t * | fr_pair_list_tail (fr_pair_list_t const *list) |
Get the tail of a valuepair list. More... | |
_INLINE fr_dlist_head_t * | fr_pair_list_to_dlist (fr_pair_list_t const *list) |
Get the dlist head from a pair list. More... | |
_INLINE fr_pair_t * | fr_pair_remove (fr_pair_list_t *list, fr_pair_t *vp) |
Remove fr_pair_t from a list without freeing. More... | |
AVP privately inlineable manipulation and search API.
Definition in file pair_inline.c.
#define _INLINE |
Definition at line 28 of file pair_inline.c.
#define _PAIR_PRIVATE 1 |
Definition at line 25 of file pair_inline.c.
_INLINE void fr_pair_list_append | ( | fr_pair_list_t * | dst, |
fr_pair_list_t * | src | ||
) |
Appends a list of fr_pair_t from a temporary list to a destination list.
dst | list to move pairs into |
src | list from which to take pairs |
Definition at line 182 of file pair_inline.c.
_INLINE bool fr_pair_list_empty | ( | fr_pair_list_t const * | list | ) |
Is a valuepair list empty.
[in] | list | to check |
Definition at line 125 of file pair_inline.c.
_INLINE void fr_pair_list_free | ( | fr_pair_list_t * | list | ) |
Free memory used by a valuepair list.
Definition at line 113 of file pair_inline.c.
_INLINE fr_pair_list_t* fr_pair_list_from_dlist | ( | fr_dlist_head_t const * | list | ) |
Get the pair list head from a dlist.
[in] | list | The order list from a pair list. |
Definition at line 172 of file pair_inline.c.
_INLINE fr_pair_t* fr_pair_list_head | ( | fr_pair_list_t const * | list | ) |
Get the head of a valuepair list.
[in] | list | to return the head of |
Definition at line 43 of file pair_inline.c.
_INLINE fr_pair_t* fr_pair_list_next | ( | fr_pair_list_t const * | list, |
fr_pair_t const * | item | ||
) |
Get the next item in a valuepair list after a specific entry.
[in] | list | to walk |
[in] | item | whose "next" item to return |
Definition at line 70 of file pair_inline.c.
_INLINE size_t fr_pair_list_num_elements | ( | fr_pair_list_t const * | list | ) |
Get the length of a list of fr_pair_t.
[in] | list | to return the length of |
Definition at line 151 of file pair_inline.c.
_INLINE void fr_pair_list_prepend | ( | fr_pair_list_t * | dst, |
fr_pair_list_t * | src | ||
) |
Move a list of fr_pair_t from a temporary list to the head of a destination list.
dst | list to move pairs into |
src | from which to take pairs |
Definition at line 195 of file pair_inline.c.
_INLINE fr_pair_t* fr_pair_list_prev | ( | fr_pair_list_t const * | list, |
fr_pair_t const * | item | ||
) |
Get the previous item in a valuepair list before a specific entry.
[in] | list | to walk |
[in] | item | whose "prev" item to return |
Definition at line 83 of file pair_inline.c.
_INLINE void fr_pair_list_sort | ( | fr_pair_list_t * | list, |
fr_cmp_t | cmp | ||
) |
Sort a doubly linked list of fr_pair_ts using merge sort.
[in,out] | list | head of dlinked fr_pair_ts to sort. |
[in] | cmp | to sort with |
Definition at line 140 of file pair_inline.c.
_INLINE fr_pair_t* fr_pair_list_tail | ( | fr_pair_list_t const * | list | ) |
Get the tail of a valuepair list.
[in] | list | to return the tail of |
Definition at line 56 of file pair_inline.c.
_INLINE fr_dlist_head_t* fr_pair_list_to_dlist | ( | fr_pair_list_t const * | list | ) |
Get the dlist head from a pair list.
[in] | list | to get the head from |
Definition at line 162 of file pair_inline.c.
_INLINE fr_pair_t* fr_pair_remove | ( | fr_pair_list_t * | list, |
fr_pair_t * | vp | ||
) |
Remove fr_pair_t from a list without freeing.
[in] | list | of value pairs to remove VP from. |
[in] | vp | to remove |
Definition at line 94 of file pair_inline.c.