![]() |
The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
#include <freeradius-devel/server/signal.h>
#include <freeradius-devel/server/request.h>
#include <freeradius-devel/server/map.h>
#include <freeradius-devel/server/map_proc.h>
#include <freeradius-devel/unlang/interpret.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | unlang_map_signal_t) (map_ctx_t const *mpctx, request_t *request, fr_signal_t action) |
A callback when the request gets a fr_signal_t. | |
Functions | |
unlang_action_t | unlang_map_yield (request_t *request, map_proc_func_t resume, unlang_map_signal_t signal, fr_signal_t sigmask, void *rctx) |
Yield a request back to the interpreter from within a module. | |
Definition in file map.h.
typedef void(* unlang_map_signal_t) (map_ctx_t const *mpctx, request_t *request, fr_signal_t action) |
A callback when the request gets a fr_signal_t.
[in] | mpctx | calling context for the map function. |
[in] | request | The current request. |
[in] | action | which is signalling the request. |
unlang_action_t unlang_map_yield | ( | request_t * | request, |
map_proc_func_t | resume, | ||
unlang_map_signal_t | signal, | ||
fr_signal_t | sigmask, | ||
void * | rctx | ||
) |
Yield a request back to the interpreter from within a module.
This passes control of the request back to the unlang interpreter, setting callbacks to execute when the request is 'signalled' asynchronously, or whatever timer or I/O event the module was waiting for occurs.
return unlang_module_yield(...)
.[in] | request | The current request. |
[in] | resume | Called on unlang_interpret_mark_runnable(). |
[in] | signal | Called on unlang_action(). |
[in] | sigmask | Set of signals to block. |
[in] | rctx | to pass to the callbacks. |
Definition at line 344 of file map.c.