The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
compile.h
Go to the documentation of this file.
1 #pragma once
2 /*
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2, or (at your option)
6  * any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software Foundation,
15  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16  */
17 
18 /**
19  * $Id: 9dd417cb3eb82f1bab4b82ba19ba045565252a9c $
20  *
21  * @file unlang/compile.h
22  * @brief Declarations for the unlang interpreter.
23  *
24  * @copyright 2019 The FreeRADIUS server project
25  */
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 #include <freeradius-devel/server/cf_util.h>
32 #include <freeradius-devel/server/components.h>
33 #include <freeradius-devel/server/tmpl.h>
34 #include <freeradius-devel/util/retry.h>
35 
36 typedef struct {
37  int actions[RLM_MODULE_NUMCODES];
40 
41 void unlang_compile_init(TALLOC_CTX *ctx);
42 
43 int unlang_compile(CONF_SECTION *cs, rlm_components_t component, tmpl_rules_t const *rules, void **instruction);
44 
45 bool unlang_compile_is_keyword(const char *name);
46 
47 bool unlang_compile_actions(unlang_actions_t *actions, CONF_SECTION *parent, bool module_retry);
48 
49 #ifdef __cplusplus
50 }
51 #endif
A section grouping multiple CONF_PAIR.
Definition: cf_priv.h:89
bool unlang_compile_actions(unlang_actions_t *actions, CONF_SECTION *parent, bool module_retry)
Definition: compile.c:1970
bool unlang_compile_is_keyword(const char *name)
Check if name is an unlang keyword.
Definition: compile.c:4935
void unlang_compile_init(TALLOC_CTX *ctx)
Definition: compile.c:4956
int unlang_compile(CONF_SECTION *cs, rlm_components_t component, tmpl_rules_t const *rules, void **instruction)
Definition: compile.c:4866
fr_retry_config_t retry
Definition: compile.h:38
enum rlm_components rlm_components_t
The different section components of the server.
@ RLM_MODULE_NUMCODES
How many valid return codes there are.
Definition: rcode.h:50
static char const * name
Optional arguments passed to vp_tmpl functions.
Definition: tmpl.h:341
static fr_slen_t parent
Definition: pair.h:844