gxPL  1.0
Tools, Application and Framework for xPL
Name/Value pairs

Detailed Description

Collaboration diagram for Name/Value pairs:

Data Structures

struct  _gxPLPair
 Describe a name=value pair. More...
 

Functions

void gxPLPairDelete (void *pair)
 Release a pair allocte on the heap Used by sysio vector and dlist. More...
 
gxPLPairgxPLPairFromLine (char *line)
 Sets a name/value form a string. More...
 
gxPLPairgxPLPairFromString (char *str)
 Sets a name/value form a string. More...
 
const void * gxPLPairKey (const void *pair)
 Returns the name of a pair as a const void * pointer Used by sysio vector. More...
 
int gxPLPairMatch (const void *key1, const void *key2)
 Compares name of 2 pair s. More...
 

Typedefs

typedef struct _gxPLPair gxPLPair
 Describe a name=value pair.
 

Function Documentation

void gxPLPairDelete ( void *  pair)

Release a pair allocte on the heap Used by sysio vector and dlist.

Parameters
pair
gxPLPair* gxPLPairFromLine ( char *  line)

Sets a name/value form a string.

Parameters
linestring name=value
Returns
the pair, NULL if error occurs
gxPLPair* gxPLPairFromString ( char *  str)

Sets a name/value form a string.

Parameters
strstring name=value\0
Returns
the pair, NULL if error occurs
const void* gxPLPairKey ( const void *  pair)

Returns the name of a pair as a const void * pointer Used by sysio vector.

Parameters
pair
int gxPLPairMatch ( const void *  key1,
const void *  key2 
)

Compares name of 2 pair s.

Parameters
key1
key2
Returns
0 equal, -1 less than, 1 more than