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

tc_set.c File Reference


Detailed Description

For internal use only.

This file contains the implementation of the tc_set() function, used to set the value of configuration variables.

Definition in file tc_set.c.

#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "treeconf_int.h"

Include dependency graph for tc_set.c:

Include dependency graph

Go to the source code of this file.

Functions

unsigned int _tc_set (treeconf_node_t *node, const char *value)
 Set variable value.
unsigned int tc_set (treeconf_ctx_t *ctx, const char *name, const char *value, treeconf_node_t *parent)
 Set a variable to a given value.


Function Documentation

unsigned int _tc_set treeconf_node_t node,
const char *  value
[static]
 

For internal use only.

This helper function performs the actual mechanics of setting the value of a particular variable.

Parameters:
node A pointer to a treeconf_node_t designating the node to set.
value The value to set the variable to.
Return values:
ENOMEM Unable to allocate memory.

Definition at line 48 of file tc_set.c.

References _tn_call_change, _treeconf_node_s::tn_default, tn_isdef, _treeconf_node_s::tn_value, and treeconf_node_t.

Referenced by tc_set().


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