The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions | Variables
modpriv.h File Reference

Stuff needed by both module.c but should not be accessed from anywhere else. More...

#include <freeradius-devel/server/dl_module.h>
#include <freeradius-devel/server/map.h>
#include <freeradius-devel/server/module.h>
+ Include dependency graph for modpriv.h:

Go to the source code of this file.

Functions

int module_rlm_sibling_section_find (CONF_SECTION **out, CONF_SECTION *module, char const *name)
 Resolve polymorphic item's from a module's CONF_SECTION to a subsection in another module. More...
 
int unlang_fixup_update (map_t *map, void *ctx)
 Validate and fixup a map that's part of an update section. More...
 

Variables

fr_cmd_table_t module_cmd_list_table []
 
fr_cmd_table_t module_cmd_table []
 

Detailed Description

Stuff needed by both module.c but should not be accessed from anywhere else.

Id
49528c94352c56afb0f15209f813bd795c893aee

Definition in file modpriv.h.

Function Documentation

◆ module_rlm_sibling_section_find()

int module_rlm_sibling_section_find ( CONF_SECTION **  out,
CONF_SECTION module,
char const *  name 
)

Resolve polymorphic item's from a module's CONF_SECTION to a subsection in another module.

This allows certain module sections to reference module sections in other instances of the same module and share CONF_DATA associated with them.

  example {
        data {
                ...
        }
  }

  example inst {
        data = example
  }
* 
Parameters
[out]outwhere to write the pointer to a module's config section. May be NULL on success, indicating the config item was not found within the module CONF_SECTION or the chain of module references was followed and the module at the end of the chain did not a subsection.
[in]moduleCONF_SECTION.
[in]nameof the polymorphic sub-section.
Returns
  • 0 on success with referenced section.
  • 1 on success with local section.
  • -1 on failure.

Definition at line 156 of file module_rlm.c.

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

◆ unlang_fixup_update()

int unlang_fixup_update ( map_t map,
void *  ctx 
)

Validate and fixup a map that's part of an update section.

Parameters
mapto validate.
ctxdata to pass to fixup function (currently unused).
Returns
  • 0 if valid.
  • -1 not valid.

Definition at line 467 of file compile.c.

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

Variable Documentation

◆ module_cmd_list_table

fr_cmd_table_t module_cmd_list_table[]
extern

Definition at line 99 of file module.c.

◆ module_cmd_table

fr_cmd_table_t module_cmd_table[]
extern

Definition at line 66 of file module.c.