Remove redundant file from freeradius-abfab list.
[freeradius.git] / src / include / modcall.h
1 #ifndef FR_MODCALL_H
2 #define FR_MODCALL_H
3
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
6  * feeding it REQUESTs.
7  *
8  * Version: $Id$ */
9
10 #include <freeradius-devel/conffile.h> /* Need CONF_* definitions */
11 #include <freeradius-devel/modules.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 /*
18  *      For each authorize/authtype/etc, we have an ordered
19  *      tree of instances to call.  This data structure keeps track
20  *      of that order.
21  */
22 typedef struct modcallable modcallable;
23
24 int modcall_fixup_update(vp_map_t *map, void *ctx);
25
26 int modcall(rlm_components_t component, modcallable *c, REQUEST *request);
27
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);
32
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);
38
39 /*
40  *      Do the second pass on compiling the modules.
41  */
42 bool modcall_pass2(modcallable *mc);
43
44 /* Add an entry to the end of a modgroup */
45 void add_to_modcallable(modcallable *parent, modcallable *this);
46
47 void modcall_debug(modcallable *mc, int depth);
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif