The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Declarations for the unlang "parallel" keyword. More...
#include "unlang_priv.h"
Go to the source code of this file.
Data Structures | |
struct | unlang_parallel_child_t |
Each parallel child has a state, and an associated request. More... | |
struct | unlang_parallel_state_t |
struct | unlang_parallel_t |
Enumerations | |
enum | unlang_parallel_child_state_t { CHILD_INIT = 0 , CHILD_RUNNABLE , CHILD_EXITED , CHILD_DETACHED , CHILD_CANCELLED , CHILD_DONE } |
Parallel child states. More... | |
Functions | |
static unlang_parallel_t * | unlang_group_to_parallel (unlang_group_t *g) |
Cast a group structure to the parallel keyword extension. More... | |
static unlang_group_t * | unlang_parallel_to_group (unlang_parallel_t *parallel) |
Cast a parallel keyword extension to a group structure. More... | |
Declarations for the unlang "parallel" keyword.
Should be moved into parallel.c when the parallel stuff is fully extracted from interpret.c
Definition in file parallel_priv.h.
struct unlang_parallel_child_t |
Each parallel child has a state, and an associated request.
Definition at line 50 of file parallel_priv.h.
Data Fields | ||
---|---|---|
unlang_t const * | instruction | broken out of g->children |
char * | name | Cache the request name. |
int | num | The child number. |
request_t * | request | Child request. |
unlang_parallel_child_state_t | state | State of the child. |
struct unlang_parallel_state_t |
Definition at line 59 of file parallel_priv.h.
Data Fields | ||
---|---|---|
unlang_parallel_child_t | children[] | Array of children. |
bool | clone | are the children cloned |
bool | detach | are we creating the child detached |
int | num_children | How many children are executing. |
int | num_complete | How many children are complete. |
int | priority | |
rlm_rcode_t | result |
struct unlang_parallel_t |
Definition at line 72 of file parallel_priv.h.
Data Fields | ||
---|---|---|
bool | clone | |
bool | detach | are we creating the child detached |
unlang_group_t | group |
Parallel child states.
Definition at line 38 of file parallel_priv.h.
|
inlinestatic |
Cast a group structure to the parallel keyword extension.
Definition at line 81 of file parallel_priv.h.
|
inlinestatic |
Cast a parallel keyword extension to a group structure.
Definition at line 89 of file parallel_priv.h.