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

Extensions for dictionary definitions. More...

#include <freeradius-devel/util/dict.h>
#include <freeradius-devel/util/dict_ext.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_aset (fr_dict_attr_t **da_p, fr_dict_attr_t const *ref, fr_dict_attr_ref_type_t type)
 
static int dict_attr_ref_aunresolved (fr_dict_attr_t **da_p, char const *ref, fr_dict_attr_ref_type_t type)
 
static int dict_attr_ref_null (fr_dict_attr_t const *da)
 
static int dict_attr_ref_resolve (fr_dict_attr_t const *da, fr_dict_attr_t const *ref)
 
static int dict_attr_ref_set (fr_dict_attr_t const *da, fr_dict_attr_t const *ref, fr_dict_attr_ref_type_t type)
 

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 242 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 228 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 56 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 43 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 77 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 90 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 103 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 69 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 261 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_aset()

static int dict_attr_ref_aset ( fr_dict_attr_t **  da_p,
fr_dict_attr_t const *  ref,
fr_dict_attr_ref_type_t  type 
)
inlinestatic

Definition at line 135 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_aunresolved()

static int dict_attr_ref_aunresolved ( fr_dict_attr_t **  da_p,
char const *  ref,
fr_dict_attr_ref_type_t  type 
)
inlinestatic

Definition at line 207 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_null()

static int dict_attr_ref_null ( fr_dict_attr_t const *  da)
inlinestatic

Definition at line 114 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_resolve()

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

Definition at line 182 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,
fr_dict_attr_ref_type_t  type 
)
inlinestatic

Definition at line 158 of file dict_ext_priv.h.

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