4 /* modcall.h: the outside interface to the module-calling tree. Includes
5 * functions to build the tree from the config file, and to call it by
10 #include <freeradius-devel/conffile.h> /* Need CONF_* definitions */
11 #include <freeradius-devel/modules.h>
18 * For each authorize/authtype/etc, we have an ordered
19 * tree of instances to call. This data structure keeps track
22 typedef struct modcallable modcallable;
24 int modcall_fixup_update(vp_map_t *map, void *ctx);
26 int modcall(rlm_components_t component, modcallable *c, REQUEST *request);
28 /* Parse a module-method's config section (e.g. authorize{}) into a tree that
29 * may be called with modcall() */
30 modcallable *compile_modgroup(modcallable *parent,
31 rlm_components_t component, CONF_SECTION *cs);
33 /* Create a single modcallable node that references a module instance. This
34 * may be a CONF_SECTION containing action specifiers like "notfound = return"
35 * or a simple CONF_PAIR, in which case the default actions are used. */
36 modcallable *compile_modsingle(TALLOC_CTX *ctx, modcallable **parent, rlm_components_t component, CONF_ITEM *ci,
37 char const **modname);
40 * Do the second pass on compiling the modules.
42 bool modcall_pass2(modcallable *mc);
44 /* Add an entry to the end of a modgroup */
45 void add_to_modcallable(modcallable *parent, modcallable *this);
47 void modcall_debug(modcallable *mc, int depth);