/usr/include/freeradius/modcall.h is in libfreeradius-dev 2.2.8+dfsg-0.1ubuntu0.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | #ifndef FR_MODCALL_H
#define FR_MODCALL_H
/* modcall.h: the outside interface to the module-calling tree. Includes
* functions to build the tree from the config file, and to call it by
* feeding it REQUESTs.
*
* Version: $Id$ */
#include <freeradius/conffile.h> /* Need CONF_* definitions */
#ifdef __cplusplus
extern "C" {
#endif
/*
* For each authorize/authtype/etc, we have an ordered
* tree of instances to call. This data structure keeps track
* of that order.
*/
typedef struct modcallable modcallable;
int modcall(int component, modcallable *c, REQUEST *request);
/* Parse a module-method's config section (e.g. authorize{}) into a tree that
* may be called with modcall() */
modcallable *compile_modgroup(modcallable *parent,
int component, CONF_SECTION *cs);
/* Create a single modcallable node that references a module instance. This
* may be a CONF_SECTION containing action specifiers like "notfound = return"
* or a simple CONF_PAIR, in which case the default actions are used. */
modcallable *compile_modsingle(modcallable *parent, int component, CONF_ITEM *ci,
const char **modname);
/* Add an entry to the end of a modgroup, creating it first if necessary */
void add_to_modcallable(modcallable **parent, modcallable *this,
int component, const char *name);
/* Free a tree returned by compile_modgroup or compile_modsingle */
void modcallable_free(modcallable **pc);
#ifdef __cplusplus
}
#endif
#endif
|