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/transaction_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: 9babcdb29bf12a90920a2d09cbeaed89ac7c17e3 $
20
 *
21
 * @file unlang/transaction_priv.h
22
 * @brief Declarations for unlang transactions
23
 *
24
 * @copyright 2023 Network RADIUS SAS (legal@networkradius.com)
25
 */
26
#include "unlang_priv.h"
27
#include <freeradius-devel/util/edit.h>
28
29
#ifdef __cplusplus
30
extern "C" {
31
#endif
32
33
typedef struct {
34
  unlang_group_t  group;
35
} unlang_transaction_t;
36
37
/** A transaction stack entry
38
 */
39
typedef struct {
40
  fr_edit_list_t    *el;    //!< my edit list
41
  unlang_result_t   result;
42
} unlang_frame_state_transaction_t;
43
44
/** Cast a group structure to the transaction keyword extension
45
 *
46
 */
47
static inline unlang_transaction_t *unlang_group_to_transaction(unlang_group_t *g)
48
0
{
49
0
  return talloc_get_type_abort(g, unlang_transaction_t);
50
0
}
Unexecuted instantiation: compile.c:unlang_group_to_transaction
Unexecuted instantiation: transaction.c:unlang_group_to_transaction
51
52
/** Cast a transaction keyword extension to a group structure
53
 *
54
 */
55
static inline unlang_group_t *unlang_transaction_to_group(unlang_transaction_t *to)
56
0
{
57
0
  return (unlang_group_t *)to;
58
0
}
Unexecuted instantiation: compile.c:unlang_transaction_to_group
Unexecuted instantiation: transaction.c:unlang_transaction_to_group
59
60
#ifdef __cplusplus
61
}
62
#endif