The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
catch_priv.h
Go to the documentation of this file.
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: c394348cfa32630d07681495638ab5262676c0a0 $
20  *
21  * @file unlang/catch_priv.h
22  * @brief Declarations for the "catch" keyword
23  *
24  * @copyright 2006-2019 The FreeRADIUS server project
25  */
26 #include "unlang_priv.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 typedef struct {
34 
35  bool catching[RLM_MODULE_NUMCODES];
37 
39 
40 /** Cast a group structure to the transaction keyword extension
41  *
42  */
44 {
45  return talloc_get_type_abort(g, unlang_catch_t);
46 }
47 
48 /** Cast a generic structure to the catch keyword extension
49  *
50  */
51 static inline unlang_catch_t const *unlang_generic_to_catch(unlang_t const *g)
52 {
54 }
55 
56 #ifdef __cplusplus
57 }
58 #endif
unlang_action_t
Returned by unlang_op_t calls, determine the next action of the interpreter.
Definition: action.h:35
static unlang_catch_t const * unlang_generic_to_catch(unlang_t const *g)
Cast a generic structure to the catch keyword extension.
Definition: catch_priv.h:51
static unlang_catch_t * unlang_group_to_catch(unlang_group_t *g)
Cast a group structure to the transaction keyword extension.
Definition: catch_priv.h:43
unlang_group_t group
Definition: catch_priv.h:33
unlang_action_t unlang_interpret_skip_to_catch(rlm_rcode_t *p_result, request_t *request, unlang_stack_frame_t *frame)
Skip ahead to a particular "catch" instruction.
Definition: catch.c:87
rlm_rcode_t
Return codes indicating the result of the module call.
Definition: rcode.h:40
@ RLM_MODULE_NUMCODES
How many valid return codes there are.
Definition: rcode.h:50
#define talloc_get_type_abort_const
Definition: talloc.h:282
Private interpreter structures and functions.
Generic representation of a grouping.
Definition: unlang_priv.h:145
A node in a graph of unlang_op_t (s) that we execute.
Definition: unlang_priv.h:112
Our interpreter stack, as distinct from the C stack.
Definition: unlang_priv.h:280