struct ta_conf_node

Overview

One configuration tree node. More…

#include <rcf_pch_tree.h>

struct ta_conf_node {
    // fields

    const char* name;
    cfg_val_type type;
    const te_enum_map* map;
    ta_conf_get_fn get;
    ta_conf_set_fn set;
    ta_conf_add_fn add;
    ta_conf_del_fn* del;
    ta_conf_list_fn* list;
    ta_conf_commit_fn* commit;
    const rcf_pch_cfg_substitution* subst;
    const struct ta_conf_node*const* children;
};

Detailed Documentation

One configuration tree node. Normally built with the macros.

Fields

const char* name

Configurator sub-identifier

cfg_val_type type

Value type of get/set/add

const te_enum_map* map

Name/value map, CVT_STRING only. Its presence is what makes the node an enumeration: the value travels as a name, and the accessors used are as_enum rather than as_str

ta_conf_get_fn get

Get accessor or unset

ta_conf_set_fn set

Set accessor or unset

ta_conf_add_fn add

Collection add or unset

ta_conf_del_fn* del

Collection delete or unset

ta_conf_list_fn* list

Collection list or unset

ta_conf_commit_fn* commit

Commit covering the subtree

const rcf_pch_cfg_substitution* subst

Substitutions passed through to the mirrored node

const struct ta_conf_node*const* children

Children in sibling order. Arrays built by TA_CONF_CHILDREN() carry a leading NULL pad and a NULL terminator; iteration starts at index 1.