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/try_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: 82841dcbde8256b1c0217d8125f9133a396131cc $
20
 *
21
 * @file unlang/try_priv.h
22
 * @brief Declaration for unlang try
23
 *
24
 * @copyright 2023 Network RADIUS SAS (legal@networkradius.com)
25
 */
26
#include "unlang_priv.h"
27
28
#ifdef __cplusplus
29
extern "C" {
30
#endif
31
32
typedef struct {
33
  unlang_group_t  group;
34
35
  unlang_t  *catch[RLM_MODULE_NUMCODES];
36
} unlang_try_t;
37
38
/** Cast a generic structure to the try keyword extension
39
 *
40
 */
41
static inline unlang_try_t const *unlang_generic_to_try(unlang_t const *g)
42
0
{
43
  return talloc_get_type_abort_const(g, unlang_try_t);
44
0
}
Unexecuted instantiation: catch.c:unlang_generic_to_try
Unexecuted instantiation: compile.c:unlang_generic_to_try
Unexecuted instantiation: try.c:unlang_generic_to_try
45
46
#ifdef __cplusplus
47
}
48
#endif