![]() |
The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Private data structures and types for cf_*.c. More...
#include <stdint.h>#include <sys/stat.h>#include <freeradius-devel/server/cf_parse.h>#include <freeradius-devel/util/rb.h>#include <freeradius-devel/util/dlist.h>
Include dependency graph for cf_priv.h:Go to the source code of this file.
Data Structures | |
| struct | cf_comment |
A # ... comment line preserved verbatim from the input. More... | |
| struct | cf_data |
| Internal data that is associated with a configuration section. More... | |
| struct | cf_file_t |
| struct | cf_item |
| Common header for all CONF_* types. More... | |
| struct | cf_pair |
| Configuration AVP similar to a fr_pair_t. More... | |
| struct | cf_section |
| A section grouping multiple CONF_PAIR. More... | |
Macros | |
| #define | cf_item_foreach_next(_ci, _iter, _prev) for (CONF_ITEM *_iter = fr_dlist_next(&(_ci)->children, _prev); _iter; _iter = fr_dlist_next(&(_ci)->children, _iter)) |
| Iterate over the contents of a list. | |
| #define | cf_item_foreach_prev(_ci, _iter, _prev) for (CONF_ITEM *_iter = fr_dlist_prev(&(_ci)->children, _prev); _iter; _iter = fr_dlist_prev(&(_ci)->children, _iter)) |
| Iterate over the contents of a list in reverse order. | |
Typedefs | |
| typedef enum conf_type | CONF_ITEM_TYPE |
Enumerations | |
| enum | cf_unlang_t { CF_UNLANG_NONE = 0 , CF_UNLANG_ALLOW , CF_UNLANG_SERVER , CF_UNLANG_POLICY , CF_UNLANG_MODULES , CF_UNLANG_EDIT , CF_UNLANG_ASSIGNMENT , CF_UNLANG_DICTIONARY , CF_UNLANG_CAN_HAVE_UPDATE } |
| enum | conf_type { CONF_ITEM_INVALID = 0 , CONF_ITEM_PAIR , CONF_ITEM_SECTION , CONF_ITEM_DATA , CONF_ITEM_COMMENT } |
Functions | |
| bool | _cf_expand_variables (void) |
| bool | _cf_preserve_comments (void) |
| static bool | cf_item_has_no_children (CONF_ITEM const *ci) |
| Check if the CONF_ITEM has no children. | |
Private data structures and types for cf_*.c.
Definition in file cf_priv.h.
| struct cf_comment |
A # ... comment line preserved verbatim from the input.
Only constructed when cf_preserve_comments is set before parsing; the runtime config parser drops comments as it always has.
Collaboration diagram for cf_comment:| Data Fields | ||
|---|---|---|
| CONF_ITEM | item | Common set of fields. |
| char const * | text |
Comment text, with the leading # and any surrounding whitespace stripped. |
| struct cf_data |
Internal data that is associated with a configuration section.
Collaboration diagram for cf_data:| Data Fields | ||
|---|---|---|
| void const * | data | User data. |
| bool | is_talloced | If true we can do extra checks. |
| CONF_ITEM | item | Common set of fields. |
| char const * | name | Additional qualification of type. |
| char const * | type | C type of data being stored. |
| struct cf_file_t |
Collaboration diagram for cf_file_t:| Data Fields | ||
|---|---|---|
| struct stat | buf | stat about the file |
| CONF_SECTION * | cs | CONF_SECTION associated with the file. |
| char const * | filename | name of the file |
| bool | from_dir | was read from a directory |
| fr_rb_node_t | node | |
| struct cf_item |
Collaboration diagram for cf_item:| Data Fields | ||
|---|---|---|
| fr_dlist_head_t | children | The head of the ordered list of children. |
| fr_dlist_t | entry | Entry in dlist. |
| char const * | filename | The file the config item was parsed from. |
| fr_rb_tree_t * | ident1 | Tree to store the first identifier (name1 || type || attr). |
| fr_rb_node_t | ident1_node | Entry in the ident1 tree. |
| fr_rb_tree_t * | ident2 | Tree to store the second identifier (name2 || name). |
| fr_rb_node_t | ident2_node | Entry in the ident2 tree. |
| int | lineno | The line number the config item began on. |
| CONF_ITEM * | parent | Parent. |
| bool | parsed | Was this item used during parsing? |
| bool | referenced | Was this item referenced in the config? |
| CONF_ITEM_TYPE | type | Whether the config item is a config_pair, conf_section or cf_data. |
| struct cf_pair |
Collaboration diagram for cf_pair:| Data Fields | ||
|---|---|---|
| char const * | attr | Attribute name. |
| CONF_ITEM | item | Common set of fields. |
| fr_token_t | lhs_quote | Name quoting style T_(DOUBLE|SINGLE|BACK)_QUOTE_STRING or T_BARE_WORD. |
| fr_token_t | op | Operator e.g. =, :=. |
| bool | pass2 | do expansion in pass2. |
| bool | printed | Was this item printed already in debug mode? |
| fr_token_t | rhs_quote | Value Quoting style T_(DOUBLE|SINGLE|BACK)_QUOTE_STRING or T_BARE_WORD. |
| char const * | value | Attribute value. |
| struct cf_section |
Collaboration diagram for cf_section:| Data Fields | ||
|---|---|---|
| bool | allow_locals | allow local variables |
| int | argc | number of additional arguments |
| char const ** | argv | additional arguments |
| fr_token_t * | argv_quote | |
| bool | at_reference | this thing was created from an ... |
| void * | base | |
| int | depth | |
| CONF_ITEM | item | Common set of fields. |
| char const * | name1 |
First name token. Given foo bar {} would be foo. |
| char const * | name2 |
Second name token. Given foo bar {} would be bar. |
| fr_token_t | name2_quote | The type of quoting around name2. |
| CONF_SECTION * | template | |
| cf_unlang_t | unlang | |
| #define cf_item_foreach_next | ( | _ci, | |
| _iter, | |||
| _prev | |||
| ) | for (CONF_ITEM *_iter = fr_dlist_next(&(_ci)->children, _prev); _iter; _iter = fr_dlist_next(&(_ci)->children, _iter)) |
| #define cf_item_foreach_prev | ( | _ci, | |
| _iter, | |||
| _prev | |||
| ) | for (CONF_ITEM *_iter = fr_dlist_prev(&(_ci)->children, _prev); _iter; _iter = fr_dlist_prev(&(_ci)->children, _iter)) |
| typedef enum conf_type CONF_ITEM_TYPE |
| enum cf_unlang_t |
| enum conf_type |
| bool _cf_expand_variables | ( | void | ) |
| bool _cf_preserve_comments | ( | void | ) |
1.9.8