![]() |
The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Base, utility functions for the unlang library. More...
#include "unlang_priv.h"
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_t * | unlang_op_table = NULL |
unlang_op_t | unlang_ops [UNLANG_TYPE_MAX] |
Different operations the interpreter can execute. | |
Base, utility functions for the unlang library.
Definition in file base.c.
|
static |
|
static |
|
static |
|
static |
int unlang_global_init | ( | void | ) |
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.
[in] | op | unlang_op_t to register. |
Definition at line 56 of file base.c.
bool unlang_section | ( | CONF_SECTION * | cs | ) |
fr_hash_table_t* unlang_op_table = NULL |
unlang_op_t unlang_ops[UNLANG_TYPE_MAX] |