The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
dict_ext_priv.h File Reference

Extensions for dictionary definitions. More...

#include <freeradius-devel/util/dict.h>
#include <limits.h>
+ Include dependency graph for dict_ext_priv.h:

Go to the source code of this file.

Add extension structures to attributes

static void * dict_attr_ext_alloc (fr_dict_attr_t **da_p, fr_dict_attr_ext_t ext)
 Allocate an attribute extension. More...
 
static void * dict_attr_ext_alloc_size (fr_dict_attr_t **da_p, fr_dict_attr_ext_t ext, size_t ext_len)
 Allocate an attribute extension of a particular size. More...
 
static void * dict_attr_ext_copy (fr_dict_attr_t **da_out_p, fr_dict_attr_t const *da_in, fr_dict_attr_ext_t ext)
 Copy a single attribute extension from one attribute to another. More...
 
static int dict_attr_ext_copy_all (fr_dict_attr_t **da_out_p, fr_dict_attr_t const *da_in)
 Copy all attribute extensions from one attribute to another. More...
 
static void dict_attr_ext_debug (char const *name, fr_dict_attr_t const *da)
 Print extension debug information for attributes. More...
 
static size_t dict_attr_ext_len (fr_dict_attr_t const *da, fr_dict_attr_ext_t ext)
 Return the length of an attribute extension. More...
 

Convenience functions for populating attribute extensions

static fr_dict_attr_t const ** dict_attr_children (fr_dict_attr_t const *da)
 
static int dict_attr_children_set (fr_dict_attr_t const *da, fr_dict_attr_t const **children)
 
static fr_hash_table_tdict_attr_namespace (fr_dict_attr_t const *da)
 Return the namespace hash table associated with the attribute. More...
 
static int dict_attr_ref_set (fr_dict_attr_t const *da, fr_dict_attr_t const *ref)
 

Detailed Description

Extensions for dictionary definitions.

Definition in file dict_ext_priv.h.

Function Documentation

◆ dict_attr_children()

static fr_dict_attr_t const** dict_attr_children ( fr_dict_attr_t const *  da)
inlinestatic

Definition at line 142 of file dict_ext_priv.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dict_attr_children_set()

static int dict_attr_children_set ( fr_dict_attr_t const *  da,
fr_dict_attr_t const **  children 
)
inlinestatic

Definition at line 127 of file dict_ext_priv.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dict_attr_ext_alloc()

static void* dict_attr_ext_alloc ( fr_dict_attr_t **  da_p,
fr_dict_attr_ext_t  ext 
)
inlinestatic

Allocate an attribute extension.

Definition at line 55 of file dict_ext_priv.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dict_attr_ext_alloc_size()

static void* dict_attr_ext_alloc_size ( fr_dict_attr_t **  da_p,
fr_dict_attr_ext_t  ext,
size_t  ext_len 
)
inlinestatic

Allocate an attribute extension of a particular size.

Definition at line 42 of file dict_ext_priv.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dict_attr_ext_copy()

static void* dict_attr_ext_copy ( fr_dict_attr_t **  da_out_p,
fr_dict_attr_t const *  da_in,
fr_dict_attr_ext_t  ext 
)
inlinestatic

Copy a single attribute extension from one attribute to another.

Definition at line 76 of file dict_ext_priv.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dict_attr_ext_copy_all()

static int dict_attr_ext_copy_all ( fr_dict_attr_t **  da_out_p,
fr_dict_attr_t const *  da_in 
)
inlinestatic

Copy all attribute extensions from one attribute to another.

Definition at line 89 of file dict_ext_priv.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dict_attr_ext_debug()

static void dict_attr_ext_debug ( char const *  name,
fr_dict_attr_t const *  da 
)
inlinestatic

Print extension debug information for attributes.

Definition at line 102 of file dict_ext_priv.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dict_attr_ext_len()

static size_t dict_attr_ext_len ( fr_dict_attr_t const *  da,
fr_dict_attr_ext_t  ext 
)
inlinestatic

Return the length of an attribute extension.

Definition at line 68 of file dict_ext_priv.h.

+ Here is the call graph for this function:

◆ dict_attr_namespace()

static fr_hash_table_t* dict_attr_namespace ( fr_dict_attr_t const *  da)
inlinestatic

Return the namespace hash table associated with the attribute.

Parameters
[in]dato return the reference for.
Returns
  • NULL if no namespace available.
  • A pointer to the namespace hash table

Definition at line 162 of file dict_ext_priv.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dict_attr_ref_set()

static int dict_attr_ref_set ( fr_dict_attr_t const *  da,
fr_dict_attr_t const *  ref 
)
inlinestatic

Definition at line 112 of file dict_ext_priv.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: