The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
base.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: 000b670c9d910f29f0504bb0fa511fa7325d38a1 $
20  *
21  * @file unlang/base.h
22  * @brief Public interface to the unlang interpreter
23  *
24  * @copyright 2016-2019 The FreeRADIUS server project
25  */
26 #include <freeradius-devel/unlang/call.h>
27 #include <freeradius-devel/unlang/compile.h>
28 #include <freeradius-devel/unlang/function.h>
29 #include <freeradius-devel/unlang/interpret.h>
30 #include <freeradius-devel/unlang/module.h>
31 #include <freeradius-devel/unlang/subrequest.h>
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
38 
39 int unlang_global_init(void);
40 
41 void unlang_global_free(void);
42 
43 int unlang_thread_instantiate(TALLOC_CTX *ctx) CC_HINT(nonnull);
44 
45 #ifdef WITH_PERF
46 void unlang_perf_virtual_server(fr_log_t *log, char const *name);
47 #endif
48 
49 #ifdef __cplusplus
50 }
51 #endif
A section grouping multiple CONF_PAIR.
Definition: cf_priv.h:89
static char const * name
Definition: log.h:96
int unlang_thread_instantiate(TALLOC_CTX *ctx)
Create thread-specific data structures for unlang.
Definition: compile.c:4965
void unlang_global_free(void)
Definition: base.c:134
bool unlang_section(CONF_SECTION *cs)
Return whether a section has unlang data associated with it.
Definition: base.c:42
int unlang_global_init(void)
Definition: base.c:74
int nonnull(2, 5))