Coverage Report

Created: 2026-06-30 07:16

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/freeradius-server/src/lib/unlang/call_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: 2b88c95ae323f1bfb8659dfc27188f6e3d48ca45 $
20
 *
21
 * @file unlang/call_priv.h
22
 *
23
 * @copyright 2020 The FreeRADIUS server project
24
 * @copyright 2021 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
25
 */
26
#ifdef __cplusplus
27
extern "C" {
28
#endif
29
30
#include "unlang_priv.h"
31
#include <freeradius-devel/unlang/unlang_priv.h>
32
33
/** Entry point into a proto_ module.
34
 *
35
 */
36
typedef struct {
37
  unlang_group_t      group;      //!< Generic field common to all group type
38
                ///< #unlang_t nodes.
39
  CONF_SECTION      *server_cs;   //!< Config section of the virtual server being
40
                ///< executed.
41
  fr_dict_attr_t const    *attr_packet_type;  //!< Attribute used to specify packet type and
42
                ///< sections run in the server_cs.
43
} unlang_call_t;
44
45
/** Cast a group structure to the call keyword extension
46
 *
47
 */
48
static inline unlang_call_t *unlang_group_to_call(unlang_group_t *g)
49
0
{
50
0
  return talloc_get_type_abort(g, unlang_call_t);
51
0
}
Unexecuted instantiation: call.c:unlang_group_to_call
Unexecuted instantiation: compile.c:unlang_group_to_call
52
53
/** Cast a call keyword extension to a group structure
54
 *
55
 */
56
static inline unlang_group_t *unlang_call_to_group(unlang_call_t *call)
57
0
{
58
0
  return (unlang_group_t *)call;
59
0
}
Unexecuted instantiation: call.c:unlang_call_to_group
Unexecuted instantiation: compile.c:unlang_call_to_group
60
61
/** Cast a call keyword extension to a unlang_t structure
62
 *
63
 */
64
static inline unlang_t *unlang_call_to_generic(unlang_call_t *call)
65
0
{
66
0
  return (unlang_t *)call;
67
0
}
Unexecuted instantiation: call.c:unlang_call_to_generic
Unexecuted instantiation: compile.c:unlang_call_to_generic
68
69
#ifdef __cplusplus
70
}
71
#endif