The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
condition.c File Reference

Unlang "condition" keyword evaluation. More...

#include "condition_priv.h"
#include "group_priv.h"
+ Include dependency graph for condition.c:

Go to the source code of this file.

Data Structures

struct  unlang_frame_state_cond_t
 

Functions

static unlang_tcompile_if_subsection (unlang_t *parent, unlang_compile_ctx_t *unlang_ctx, CONF_SECTION *cs, unlang_type_t type)
 
static unlang_tunlang_compile_else (unlang_t *parent, unlang_compile_ctx_t *unlang_ctx, CONF_ITEM const *ci)
 
static unlang_tunlang_compile_elsif (unlang_t *parent, unlang_compile_ctx_t *unlang_ctx, CONF_ITEM const *ci)
 
static unlang_tunlang_compile_if (unlang_t *parent, unlang_compile_ctx_t *unlang_ctx, CONF_ITEM const *ci)
 
void unlang_condition_init (void)
 
static unlang_action_t unlang_if (unlang_result_t *p_result, request_t *request, unlang_stack_frame_t *frame)
 
static unlang_action_t unlang_if_resume (unlang_result_t *p_result, request_t *request, unlang_stack_frame_t *frame)
 

Variables

static const fr_sbuff_term_t if_terminals
 

Detailed Description

Unlang "condition" keyword evaluation.

Id
bf6b048af39f577da72633ebd61d57c4979f6416

Definition in file condition.c.


Data Structure Documentation

◆ unlang_frame_state_cond_t

struct unlang_frame_state_cond_t

Definition at line 30 of file condition.c.

+ Collaboration diagram for unlang_frame_state_cond_t:
Data Fields
fr_value_box_list_t out Head of the result of a nested expansion.
unlang_result_t result Store the result of unlang expressions.

Function Documentation

◆ compile_if_subsection()

static unlang_t * compile_if_subsection ( unlang_t parent,
unlang_compile_ctx_t unlang_ctx,
CONF_SECTION cs,
unlang_type_t  type 
)
static

Definition at line 132 of file condition.c.

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

◆ unlang_compile_else()

static unlang_t * unlang_compile_else ( unlang_t parent,
unlang_compile_ctx_t unlang_ctx,
CONF_ITEM const *  ci 
)
static

Definition at line 264 of file condition.c.

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

◆ unlang_compile_elsif()

static unlang_t * unlang_compile_elsif ( unlang_t parent,
unlang_compile_ctx_t unlang_ctx,
CONF_ITEM const *  ci 
)
static

Definition at line 259 of file condition.c.

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

◆ unlang_compile_if()

static unlang_t * unlang_compile_if ( unlang_t parent,
unlang_compile_ctx_t unlang_ctx,
CONF_ITEM const *  ci 
)
static

Definition at line 254 of file condition.c.

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

◆ unlang_condition_init()

void unlang_condition_init ( void  )

Definition at line 277 of file condition.c.

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

◆ unlang_if()

static unlang_action_t unlang_if ( unlang_result_t p_result,
request_t request,
unlang_stack_frame_t frame 
)
static

Definition at line 97 of file condition.c.

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

◆ unlang_if_resume()

static unlang_action_t unlang_if_resume ( unlang_result_t p_result,
request_t request,
unlang_stack_frame_t frame 
)
static

Definition at line 36 of file condition.c.

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

Variable Documentation

◆ if_terminals

const fr_sbuff_term_t if_terminals
static
Initial value:
L(""),
L("{"),
)
#define L(_str)
Helper for initialising arrays of string literals.
Definition build.h:209
#define FR_SBUFF_TERMS(...)
Initialise a terminal structure with a list of sorted strings.
Definition sbuff.h:192

Definition at line 127 of file condition.c.