Coverage Report

Created: 2026-03-31 06:21

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/freeradius-server/src/lib/unlang/edit_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: 028586abb9a950e935e64ead041fef582fc49230 $
20
 *
21
 * @file unlang/edit_priv.h
22
 *
23
 * @copyright 2021 Network RADIUS SAS (legal@networkradius.com)
24
 */
25
#ifdef __cplusplus
26
extern "C" {
27
#endif
28
29
#include "unlang_priv.h"
30
31
typedef struct {
32
  unlang_t    self;
33
  map_list_t    maps;   //!< Head of the map list
34
} unlang_edit_t;
35
36
/** Cast a generic structure to the edit extension
37
 *
38
 */
39
static inline unlang_edit_t *unlang_generic_to_edit(unlang_t const *p)
40
0
{
41
0
  fr_assert(p->type == UNLANG_TYPE_EDIT);
42
0
  return UNCONST(unlang_edit_t *, talloc_get_type_abort_const(p, unlang_edit_t));
43
0
}
Unexecuted instantiation: compile.c:unlang_generic_to_edit
Unexecuted instantiation: edit.c:unlang_generic_to_edit
44
45
static inline unlang_t *unlang_edit_to_generic(unlang_edit_t const *p)
46
0
{
47
0
  return UNCONST(unlang_t *, p);
48
0
}
Unexecuted instantiation: compile.c:unlang_edit_to_generic
Unexecuted instantiation: edit.c:unlang_edit_to_generic
49
50
#ifdef __cplusplus
51
}
52
#endif