[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Conf4CValue

Conf4CValue - Struct for management and storage of a single name / value pair

Synopsis

struct Conf4CValue;

Conf4CValue * 	conf4c_value_new (const char *name, const char *value);
Conf4CValue * 	conf4c_value_update (Conf4CValue *cv, const char *value);
Conf4CValue * 	conf4c_value_get_name (const Conf4CValue *);
Conf4CValue * 	conf4c_value_get_value (const Conf4CValue *);

Description

The Conf4CValue struct encapsulates a name / value pair of a configuration file.

Details

struct Conf4CValue

struct Conf4CValue;
This should not be accessed directly. Use the accessor functions below.

conf4c_value_new ()

Conf4CValue * conf4c_value_new (const char *name, const char *value);
Creates a new Conf4CValue struct.

conf4c_value_update ()

Conf4CValue * conf4c_value_update (Conf4CValue *cv, const char *value);
Updates the value portion of the specified name / value pair.

 
cv: a Conf4CValue
value: a string configuration value
Returns: the updated Conf4CValue

conf4c_value_get_name ()

char * conf4c_value_get_name (const Conf4CValue *cv);
Retrieves the name of the name / value pair.

 
cv: a Conf4CValue
Returns: The name of the stored name / value pair.

conf4c_value_get_value ()

char * conf4c_value_get_value (const Conf4CValue *cv);
Retrieves the value of the name / value pair.

 
cv: a Conf4CValue
Returns: The string value of the stored name / value pair.

[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated on October, 29 2004 using texi2html 1.70.