Unlang "function" keyword evaluation.
More...
#include "unlang_priv.h"
#include "function.h"
Go to the source code of this file.
Unlang "function" keyword evaluation.
- Id
- 4477a947db040f398f29b21d866e4493e7dfbbbd
- Copyright
- 2018,2021 The FreeRADIUS server project
-
2018,2021 Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
Definition in file function.c.
◆ unlang_frame_state_func_t
struct unlang_frame_state_func_t |
Definition at line 34 of file function.c.
Data Fields |
unlang_function_t |
func |
To call when going down the stack. |
char const * |
func_name |
Debug name for the function. |
unlang_function_t |
repeat |
To call when going back up the stack. |
char const * |
repeat_name |
Debug name for the repeat function. |
fr_signal_t |
sigmask |
Signals to block. |
unlang_function_signal_t |
signal |
Signal function to call. |
char const * |
signal_name |
Debug name for the signal function. |
void * |
uctx |
Uctx to pass to function. |
◆ unlang_function_call()
Call a generic function.
- Parameters
-
[out] | p_result | The frame result. |
[in] | request | The current request. |
[in] | frame | The current frame. |
Definition at line 109 of file function.c.
◆ unlang_function_call_repeat()
◆ unlang_function_clear()
int unlang_function_clear |
( |
request_t * |
request | ) |
|
Clear pending repeat function calls, and remove the signal handler.
The function frame being modified must be at the top of the stack.
- Parameters
-
[in] | request | The current request. |
- Returns
- 0 on success.
- -1 on failure.
Definition at line 160 of file function.c.
◆ unlang_function_dump()
Custom frame state dumper.
Definition at line 327 of file function.c.
◆ unlang_function_init()
void unlang_function_init |
( |
void |
| ) |
|
◆ unlang_function_signal()
Generic signal handler.
- Parameters
-
[in] | request | being signalled. |
[in] | frame | being signalled. |
[in] | action | Type of signal. |
Definition at line 74 of file function.c.
◆ function_instruction
Initial value:= {
.name = "function",
.debug_name = "function",
.actions = {
.actions = {
},
},
}
@ RLM_MODULE_INVALID
The module considers the request invalid.
@ RLM_MODULE_OK
The module is OK, continue.
@ RLM_MODULE_FAIL
Module failed, don't reply.
@ RLM_MODULE_DISALLOW
Reject the request (user is locked out).
@ RLM_MODULE_REJECT
Immediately reject the request.
@ RLM_MODULE_NOTFOUND
User not found.
@ RLM_MODULE_UPDATED
OK (pairs modified).
@ RLM_MODULE_NOOP
Module succeeded without doing anything.
@ RLM_MODULE_HANDLED
The module handled the request, so stop.
@ UNLANG_TYPE_FUNCTION
Internal call to a function or submodule.
Static instruction for allowing modules/xlats to call functions within themselves, or submodules.
Definition at line 48 of file function.c.