Coverage Report

Created: 2026-04-12 06:36

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/freeradius-server/src/lib/unlang/timeout_priv.h
Line
Count
Source
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: 1a741d1c302e023c56a0625c7ff63e91d3e8bba2 $
20
 *
21
 * @file unlang/timeout_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
  fr_time_delta_t timeout;
35
} unlang_timeout_t;
36
37
/** Cast a group structure to the timeout keyword extension
38
 *
39
 */
40
static inline unlang_timeout_t *unlang_group_to_timeout(unlang_group_t *g)
41
0
{
42
0
  return talloc_get_type_abort(g, unlang_timeout_t);
43
0
}
Unexecuted instantiation: compile.c:unlang_group_to_timeout
Unexecuted instantiation: timeout.c:unlang_group_to_timeout
44
45
/** Cast a timeout keyword extension to a group structure
46
 *
47
 */
48
static inline unlang_group_t *unlang_timeout_to_group(unlang_timeout_t *to)
49
0
{
50
0
  return (unlang_group_t *)to;
51
0
}
Unexecuted instantiation: compile.c:unlang_timeout_to_group
Unexecuted instantiation: timeout.c:unlang_timeout_to_group
52
53
#ifdef __cplusplus
54
}
55
#endif