27RCSIDH(map_proc_h,
"$Id: 08832c95f57c50d6928938a323c77767724cec0f $")
40#include <freeradius-devel/server/cf_util.h>
41#include <freeradius-devel/server/tmpl.h>
42#include <freeradius-devel/server/map.h>
43#include <freeradius-devel/util/value.h>
72 fr_value_box_list_t *result, map_list_t
const *maps);
86 tmpl_t const *src, map_list_t
const *maps);
unlang_action_t
Returned by unlang_op_t calls, determine the next action of the interpreter.
A section grouping multiple CONF_PAIR.
int(* map_proc_instantiate_t)(CONF_SECTION *cs, void const *mod_inst, void *proc_inst, tmpl_t const *src, map_list_t const *maps)
Allocate new instance data for a map processor.
void const * mpi
Map processor instance.
map_proc_t * map_proc_find(char const *name)
Find a map processor by name.
unlang_action_t(* map_proc_func_t)(unlang_result_t *p_result, map_ctx_t const *mpctx, request_t *request, fr_value_box_list_t *result, map_list_t const *maps)
Function to evaluate the src string and map the result to server attributes.
int map_proc_unregister(char const *name)
Unregister a map processor by name.
void * rctx
Resume ctx that a module previously set.
map_proc_inst_t * map_proc_instantiate(TALLOC_CTX *ctx, map_proc_t const *proc, CONF_SECTION *cs, tmpl_t const *src, map_list_t const *maps)
Create a new map proc instance.
int map_proc_register(TALLOC_CTX *ctx, void const *mod_inst, char const *name, map_proc_func_t evaluate, map_proc_instantiate_t instantiate, size_t inst_size, fr_value_box_safe_for_t safe_for)
Register a map processor.
void const * moi
Map module instance.
fr_value_box_safe_for_t map_proc_literals_safe_for(map_proc_t const *proc)
Temporary structure to hold arguments for map calls.
Map processor registration.
static int instantiate(module_inst_ctx_t const *mctx)
uintptr_t fr_value_box_safe_for_t
Escaping that's been applied to a value box.