For internal use only.
This file contains the implementation of the _tc_release_children() and _tc_create_node() functions, which are used to allocate and release treeconf_node_t variable nodes.
Definition in file _tc_node.c.
#include <stdlib.h>
#include <string.h>
#include "treeconf_int.h"
Include dependency graph for _tc_node.c:
Go to the source code of this file.
Functions | |
void | _tc_release_children (treeconf_node_t *node) |
Release a node's children. | |
treeconf_node_t * | _tc_create_node (treeconf_ctx_t *ctx, treeconf_node_t *parent, treeconf_type_t type, const char *name, int len, const char *def, treeconf_nodown_t nodown, treeconf_change_t change, void *assoc) |
Create a node. |
|
For internal use only. This function creates a node with a given set of characteristics.
Definition at line 82 of file _tc_node.c. References _treeconf_node_s::tn_assoc, _treeconf_node_s::tn_change, _treeconf_node_s::tn_context, _treeconf_node_s::tn_default, _treeconf_node_s::tn_down, _treeconf_node_s::tn_magic, _treeconf_node_s::tn_name, _treeconf_node_s::tn_next, _treeconf_node_s::tn_nodown, _treeconf_node_s::tn_parent, _treeconf_node_s::tn_type, _treeconf_node_s::tn_value, treeconf_ctx_t, treeconf_node_t, _treeconf_ctx_s::tx_config, and _treeconf_ctx_s::tx_count. Referenced by tc_find(), tc_register(), and tc_set(). |
|
For internal use only.
This function walks through the list of children for the given
Definition at line 45 of file _tc_node.c. References _tc_release_node, _treeconf_node_s::tn_down, _treeconf_node_s::tn_next, and treeconf_node_t. Referenced by tc_register(), and tc_set(). |