27 RCSIDH(map_proc_h,
"$Id: f409f7d0fb866300775423f66d888f8835b1a2fe $")
29 #include <freeradius-devel/conffile.h>
30 #include <freeradius-devel/tmpl.h>
int map_proc_register(void *mod_inst, char const *name, map_proc_func_t evaluate, xlat_escape_t escape, map_proc_instantiate_t instantiate, size_t inst_size)
Register a map processor.
size_t(* xlat_escape_t)(REQUEST *request, char *out, size_t outlen, char const *in, void *arg)
vp_map_t const * maps
Head of the map list.
rlm_rcode_t map_proc(REQUEST *request, map_proc_inst_t const *inst)
Evaluate a set of maps using the specified map processor.
map_proc_t * map_proc_find(char const *name)
Find a map processor by name.
map_proc_t const * proc
Map processor.
rlm_rcode_t(* map_proc_func_t)(void *mod_inst, void *proc_inst, REQUEST *request, char const *src, vp_map_t const *maps)
Function to evaluate the src string and map the result to server attributes.
enum rlm_rcodes rlm_rcode_t
Return codes indicating the result of the module call.
Map processor registration.
map_proc_inst_t * map_proc_instantiate(TALLOC_CTX *ctx, map_proc_t const *proc, vp_tmpl_t const *src, vp_map_t const *maps)
Create a new map proc instance.
vp_tmpl_t const * src
Evaluated to provide source value for map processor.
int(* map_proc_instantiate_t)(void *proc_inst, void *mod_inst, vp_tmpl_t const *src, vp_map_t const *maps)
Allocate new instance data for a map processor.
A source or sink of value data.