Coverage Report

Created: 2026-08-08 07:10

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: f97341f15ec70f0f8a7f2ce0f91258f74bca20db $
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
/** A module stack entry
46
 *
47
 * Represents a single module call on the unlang stack.
48
 */
49
typedef struct {
50
  char const      *module;    //!< module name from request->module
51
} unlang_frame_state_call_t;
52
53
54
/** Cast a group structure to the call keyword extension
55
 *
56
 */
57
static inline unlang_call_t *unlang_group_to_call(unlang_group_t *g)
58
0
{
59
0
  return talloc_get_type_abort(g, unlang_call_t);
60
0
}
Unexecuted instantiation: call.c:unlang_group_to_call
Unexecuted instantiation: compile.c:unlang_group_to_call
61
62
/** Cast a call keyword extension to a group structure
63
 *
64
 */
65
static inline unlang_group_t *unlang_call_to_group(unlang_call_t *call)
66
0
{
67
0
  return (unlang_group_t *)call;
68
0
}
Unexecuted instantiation: call.c:unlang_call_to_group
Unexecuted instantiation: compile.c:unlang_call_to_group
69
70
/** Cast a call keyword extension to a unlang_t structure
71
 *
72
 */
73
static inline unlang_t *unlang_call_to_generic(unlang_call_t *call)
74
0
{
75
0
  return (unlang_t *)call;
76
0
}
Unexecuted instantiation: call.c:unlang_call_to_generic
Unexecuted instantiation: compile.c:unlang_call_to_generic
77
78
#ifdef __cplusplus
79
}
80
#endif