The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
edit_priv.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: 028586abb9a950e935e64ead041fef582fc49230 $
20 *
21 * @file unlang/edit_priv.h
22 *
23 * @copyright 2021 Network RADIUS SAS (legal@networkradius.com)
24 */
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#include "unlang_priv.h"
30
31typedef struct {
33 map_list_t maps; //!< Head of the map list
35
36/** Cast a generic structure to the edit extension
37 *
38 */
44
46{
47 return UNCONST(unlang_t *, p);
48}
49
50#ifdef __cplusplus
51}
52#endif
#define UNCONST(_type, _ptr)
Remove const qualification from a pointer.
Definition build.h:167
map_list_t maps
Head of the map list.
Definition edit_priv.h:33
static unlang_t * unlang_edit_to_generic(unlang_edit_t const *p)
Definition edit_priv.h:45
static unlang_edit_t * unlang_generic_to_edit(unlang_t const *p)
Cast a generic structure to the edit extension.
Definition edit_priv.h:39
unlang_t self
Definition edit_priv.h:32
#define fr_assert(_expr)
Definition rad_assert.h:38
#define talloc_get_type_abort_const
Definition talloc.h:282
Private interpreter structures and functions.
@ UNLANG_TYPE_EDIT
edit VPs in place. After 20 years!
Definition unlang_priv.h:76
unlang_type_t type
The specialisation of this node.
A node in a graph of unlang_op_t (s) that we execute.