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

Base, utility functions for the unlang library. More...

#include "unlang_priv.h"
+ Include dependency graph for base.c:

Go to the source code of this file.

Functions

static int _unlang_global_free (UNUSED void *uctx)
 
static int _unlang_global_init (UNUSED void *uctx)
 
static int8_t op_cmp (void const *one, void const *two)
 
static uint32_t op_hash (void const *data)
 
int unlang_global_init (void)
 
void unlang_register (unlang_op_t *op)
 Register an operation with the interpreter.
 
bool unlang_section (CONF_SECTION *cs)
 Return whether a section has unlang data associated with it.
 

Variables

static TALLOC_CTX * unlang_ctx = NULL
 
fr_hash_table_tunlang_op_table = NULL
 
unlang_op_t unlang_ops [UNLANG_TYPE_MAX]
 Different operations the interpreter can execute.
 

Detailed Description

Base, utility functions for the unlang library.

Id
e68b0a20ef59388f4d885bd07edf8640a9ca41b0

Definition in file base.c.

Function Documentation

◆ _unlang_global_free()

static int _unlang_global_free ( UNUSED void *  uctx)
static

Definition at line 88 of file base.c.

+ Here is the caller graph for this function:

◆ _unlang_global_init()

static int _unlang_global_init ( UNUSED void *  uctx)
static

Definition at line 96 of file base.c.

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

◆ op_cmp()

static int8_t op_cmp ( void const *  one,
void const *  two 
)
static

Definition at line 80 of file base.c.

+ Here is the caller graph for this function:

◆ op_hash()

static uint32_t op_hash ( void const *  data)
static

Definition at line 73 of file base.c.

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

◆ unlang_global_init()

int unlang_global_init ( void  )

Definition at line 158 of file base.c.

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

◆ unlang_register()

void unlang_register ( unlang_op_t op)

Register an operation with the interpreter.

The main purpose of this registration API is to avoid intermixing the xlat, condition, map APIs with the interpreter, i.e. the callbacks needed for that functionality can be in their own source files, and we don't need to include supporting types and function declarations in the interpreter.

Parameters
[in]opunlang_op_t to register.

Definition at line 56 of file base.c.

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

◆ unlang_section()

bool unlang_section ( CONF_SECTION cs)

Return whether a section has unlang data associated with it.

Parameters
[in]csto check.
Returns
  • true if it has data.
  • false if it doesn't have data.

Definition at line 40 of file base.c.

Variable Documentation

◆ unlang_ctx

TALLOC_CTX* unlang_ctx = NULL
static

Definition at line 71 of file base.c.

◆ unlang_op_table

fr_hash_table_t* unlang_op_table = NULL

Definition at line 45 of file base.c.

◆ unlang_ops

Different operations the interpreter can execute.

Definition at line 31 of file base.c.