Coverage Report

Created: 2026-05-11 06:44

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/freeradius-server/src/lib/unlang/condition_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: 414062cd73660884fb861776a694f5de48d872af $
20
 *
21
 * @file unlang/condition_priv.h
22
 *
23
 * @copyright 2020 The FreeRADIUS server project
24
 */
25
#ifdef __cplusplus
26
extern "C" {
27
#endif
28
29
#include "unlang_priv.h"
30
31
typedef struct {
32
  unlang_group_t  group;
33
  xlat_exp_head_t *head;
34
  bool    is_truthy;
35
  bool    value;
36
  bool    has_else;
37
} unlang_cond_t;
38
39
/** Cast a group structure to the cond keyword extension
40
 *
41
 */
42
static inline unlang_cond_t *unlang_group_to_cond(unlang_group_t *g)
43
0
{
44
0
  return talloc_get_type_abort(g, unlang_cond_t);
45
0
}
Unexecuted instantiation: compile.c:unlang_group_to_cond
Unexecuted instantiation: condition.c:unlang_group_to_cond
46
47
/** Cast a cond keyword extension to a group structure
48
 *
49
 */
50
static inline unlang_group_t *unlang_cond_to_group(unlang_cond_t *cond)
51
0
{
52
0
  return (unlang_group_t *)cond;
53
0
}
Unexecuted instantiation: compile.c:unlang_cond_to_group
Unexecuted instantiation: condition.c:unlang_cond_to_group
54
55
#ifdef __cplusplus
56
}
57
#endif