For internal use only.
This test program is used to test the operation of the various treeconf functions not tested elsewhere.
Definition in file t_treeconf.c.
#include "test-harness.h"
#include <errno.h>
#include <string.h>
#include "treeconf_int.h"
Include dependency graph for t_treeconf.c:
Go to the source code of this file.
Functions | |
void | t_change (treeconf_ctx_t *ctx, treeconf_node_t *node) |
Change callback. | |
int | nodown_false (treeconf_ctx_t *ctx, treeconf_node_t *parent, treeconf_str_t *name, int elements) |
False nodown callback. | |
int | nodown_true (treeconf_ctx_t *ctx, treeconf_node_t *parent, treeconf_str_t *name, int elements) |
True nodown callback. | |
int | main (int argc, char **argv) |
Test program for treeconf. | |
Variables | |
int | change |
Change sentinel. |
|
For internal use only. This program is used for testing the bulk of the treeconf library's variable handling machinery. Definition at line 118 of file t_treeconf.c. References change, t_change(), tc_destroy(), tc_find(), tc_get(), TC_NODETYPE_IMPLICIT, TC_NODETYPE_MASK, TC_NODETYPE_NODE, TC_NODETYPE_VARIABLE, tc_register(), tc_set(), tn_isdef, tn_nodown, tn_type, tn_value, treeconf_ctx_t, treeconf_node_t, tx_config, tx_count, and tx_verify. |
Here is the call graph for this function:
|
For internal use only. This is a treeconf_nodown_t callback function that returns a false value.
Definition at line 81 of file t_treeconf.c. References treeconf_ctx_t, treeconf_node_t, and treeconf_str_t. |
|
For internal use only. This is a treeconf_nodown_t callback function that returns a true value.
Definition at line 105 of file t_treeconf.c. References treeconf_ctx_t, treeconf_node_t, and treeconf_str_t. |
|
For internal use only. This is a treeconf_change_t compatible change callback function.
Definition at line 57 of file t_treeconf.c. References change, treeconf_ctx_t, and treeconf_node_t. Referenced by main(). |
|
For internal use only. This variable is a sentinel value used to indicate that the change callback was called. Definition at line 45 of file t_treeconf.c. Referenced by main(), and t_change(). |