Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

t_treeconf.c File Reference


Detailed Description

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:

Include dependency graph

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.


Function Documentation

int main int  argc,
char **  argv
 

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:

int nodown_false treeconf_ctx_t ctx,
treeconf_node_t parent,
treeconf_str_t name,
int  elements
[static]
 

For internal use only.

This is a treeconf_nodown_t callback function that returns a false value.

Parameters:
ctx A pointer to a treeconf_ctx_t.
parent A pointer to a treeconf_node_t representing the closest existing parent for the given node.
name A pointer to a treeconf_str_t containing the remaining name elements for the given node.
elements An integer giving the number of name elements.
Returns:
Boolean false.

Definition at line 81 of file t_treeconf.c.

References treeconf_ctx_t, treeconf_node_t, and treeconf_str_t.

int nodown_true treeconf_ctx_t ctx,
treeconf_node_t parent,
treeconf_str_t name,
int  elements
[static]
 

For internal use only.

This is a treeconf_nodown_t callback function that returns a true value.

Parameters:
ctx A pointer to a treeconf_ctx_t.
parent A pointer to a treeconf_node_t representing the closest existing parent for the given node.
name A pointer to a treeconf_str_t containing the remaining name elements for the given node.
elements An integer giving the number of name elements.
Returns:
Boolean true.

Definition at line 105 of file t_treeconf.c.

References treeconf_ctx_t, treeconf_node_t, and treeconf_str_t.

void t_change treeconf_ctx_t ctx,
treeconf_node_t node
[static]
 

For internal use only.

This is a treeconf_change_t compatible change callback function.

Parameters:
ctx A pointer to a treeconf_ctx_t.
node A pointer to the treeconf_node_t that has had its value changed.

Definition at line 57 of file t_treeconf.c.

References change, treeconf_ctx_t, and treeconf_node_t.

Referenced by main().


Variable Documentation

int change [static]
 

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().


Generated on Wed Jun 8 09:18:31 2005 for treeconf by  doxygen 1.3.9.1