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: 29dc827a6e706b4f81be2cc3a386036c116a36a0 $
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/tmpl.h>
33 #include <freeradius-devel/server/virtual_servers.h>
34 #include <freeradius-devel/util/retry.h>
35 #include <freeradius-devel/unlang/mod_action.h>
36 
37 void unlang_compile_init(TALLOC_CTX *ctx);
38 
39 int unlang_compile(virtual_server_t const *vs,
40  CONF_SECTION *cs, unlang_mod_actions_t const *actions, tmpl_rules_t const *rules, void **instruction);
41 
42 bool unlang_compile_is_keyword(const char *name);
43 
44 bool unlang_compile_actions(unlang_mod_actions_t *actions, CONF_SECTION *parent, bool module_retry);
45 
46 #ifdef __cplusplus
47 }
48 #endif
A section grouping multiple CONF_PAIR.
Definition: cf_priv.h:101
bool unlang_compile_is_keyword(const char *name)
Check if name is an unlang keyword.
Definition: compile.c:5092
void unlang_compile_init(TALLOC_CTX *ctx)
Definition: compile.c:5113
bool unlang_compile_actions(unlang_mod_actions_t *actions, CONF_SECTION *parent, bool module_retry)
Definition: compile.c:1847
int unlang_compile(virtual_server_t const *vs, CONF_SECTION *cs, unlang_mod_actions_t const *actions, tmpl_rules_t const *rules, void **instruction)
Compile an unlang section for a virtual server.
Definition: compile.c:5022
static char const * name
Optional arguments passed to vp_tmpl functions.
Definition: tmpl.h:341
static fr_slen_t parent
Definition: pair.h:851