The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
src
lib
unlang
limit_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: 90c72d6cf6c5a1a2158e6eb622032e81338fcec8 $
20
*
21
* @file unlang/limit_priv.h
22
*
23
* @copyright 2022 Network RADIUS SAS (legal@networkradius.com)
24
*/
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
#include <freeradius-devel/server/tmpl.h>
30
31
typedef
struct
{
32
unlang_group_t
group
;
33
tmpl_t
*
vpt
;
34
uint32_t
limit
;
35
}
unlang_limit_t
;
36
37
/** Cast a group structure to the limit keyword extension
38
*
39
*/
40
static
inline
unlang_limit_t
*
unlang_group_to_limit
(
unlang_group_t
*g)
41
{
42
return
talloc_get_type_abort(g,
unlang_limit_t
);
43
}
44
45
/** Cast a limit keyword extension to a group structure
46
*
47
*/
48
static
inline
unlang_group_t
*
unlang_limit_to_group
(
unlang_limit_t
*li)
49
{
50
return
(
unlang_group_t
*)li;
51
}
52
53
#ifdef __cplusplus
54
}
55
#endif
unlang_limit_t::limit
uint32_t limit
Definition:
limit_priv.h:34
unlang_limit_to_group
static unlang_group_t * unlang_limit_to_group(unlang_limit_t *li)
Cast a limit keyword extension to a group structure.
Definition:
limit_priv.h:48
unlang_limit_t::group
unlang_group_t group
Definition:
limit_priv.h:32
unlang_group_to_limit
static unlang_limit_t * unlang_group_to_limit(unlang_group_t *g)
Cast a group structure to the limit keyword extension.
Definition:
limit_priv.h:40
unlang_limit_t::vpt
tmpl_t * vpt
Definition:
limit_priv.h:33
unlang_limit_t
Definition:
limit_priv.h:31
uint32_t
unsigned int uint32_t
Definition:
merged_model.c:33
tmpl_t
Definition:
merged_model.c:225
unlang_group_t
Generic representation of a grouping.
Definition:
unlang_priv.h:145
Generated by
1.9.1