The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Functions | Variables
transaction.c File Reference

Allows for edit transactions. More...

#include <freeradius-devel/util/syserror.h>
#include <freeradius-devel/server/rcode.h>
#include "transaction.h"
#include "transaction_priv.h"
+ Include dependency graph for transaction.c:

Go to the source code of this file.

Functions

static bool transaction_ok (CONF_SECTION *cs)
 Limit the operations which can appear in a transaction.
 
static unlang_tunlang_compile_transaction (unlang_t *parent, unlang_compile_ctx_t *unlang_ctx, CONF_ITEM const *ci)
 
fr_edit_list_tunlang_interpret_edit_list (request_t *request)
 
static unlang_action_t unlang_transaction (UNUSED unlang_result_t *p_result, request_t *request, unlang_stack_frame_t *frame)
 
static unlang_action_t unlang_transaction_final (UNUSED unlang_result_t *p_result, UNUSED request_t *request, unlang_stack_frame_t *frame)
 Commit a successful transaction.
 
void unlang_transaction_init (void)
 
static void unlang_transaction_signal (UNUSED request_t *request, unlang_stack_frame_t *frame, fr_signal_t action)
 Signal a transaction to abort.
 

Variables

static fr_table_num_sorted_t transaction_keywords []
 
static int transaction_keywords_len = NUM_ELEMENTS(transaction_keywords)
 

Detailed Description

Allows for edit transactions.

Id
3e587370c688a1835d416a16b572e67c0b90e943

Definition in file transaction.c.

Function Documentation

◆ transaction_ok()

static bool transaction_ok ( CONF_SECTION cs)
static

Limit the operations which can appear in a transaction.

Definition at line 156 of file transaction.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_compile_transaction()

static unlang_t * unlang_compile_transaction ( unlang_t parent,
unlang_compile_ctx_t unlang_ctx,
CONF_ITEM const *  ci 
)
static

Definition at line 218 of file transaction.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_interpret_edit_list()

fr_edit_list_t * unlang_interpret_edit_list ( request_t request)

Definition at line 114 of file transaction.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_transaction()

static unlang_action_t unlang_transaction ( UNUSED unlang_result_t p_result,
request_t request,
unlang_stack_frame_t frame 
)
static

Definition at line 100 of file transaction.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_transaction_final()

static unlang_action_t unlang_transaction_final ( UNUSED unlang_result_t p_result,
UNUSED request_t request,
unlang_stack_frame_t frame 
)
static

Commit a successful transaction.

Definition at line 56 of file transaction.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_transaction_init()

void unlang_transaction_init ( void  )

Definition at line 266 of file transaction.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_transaction_signal()

static void unlang_transaction_signal ( UNUSED request_t request,
unlang_stack_frame_t frame,
fr_signal_t  action 
)
static

Signal a transaction to abort.

Parameters
[in]requestThe current request.
[in]framebeing signalled.
[in]actionto signal.

Definition at line 39 of file transaction.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ transaction_keywords

fr_table_num_sorted_t transaction_keywords[]
static
Initial value:
= {
{ L("case"), 1 },
{ L("else"), 1 },
{ L("elsif"), 1 },
{ L("foreach"), 1 },
{ L("group"), 1 },
{ L("if"), 1 },
{ L("limit"), 1 },
{ L("load-balance"), 1 },
{ L("redundant"), 1 },
{ L("redundant-load-balance"), 1 },
{ L("switch"), 1 },
{ L("timeout"), 1 },
{ L("transaction"), 1 },
}
#define L(_str)
Helper for initialising arrays of string literals.
Definition build.h:209

Definition at line 137 of file transaction.c.

◆ transaction_keywords_len

int transaction_keywords_len = NUM_ELEMENTS(transaction_keywords)
static

Definition at line 152 of file transaction.c.