mUPnP for C
dictionary.c File Reference

Functions

mUpnpDictionarymupnp_dictionary_new ()
 
void mupnp_dictionary_delete (mUpnpDictionary *dictionaryList)
 
mUpnpDictionaryElementmupnp_dictionary_getelement (mUpnpDictionary *dir, const char *key)
 
void mupnp_dictionary_setvalue (mUpnpDictionary *dir, const char *key, const char *value)
 
const char * mupnp_dictionary_getvalue (mUpnpDictionary *dir, const char *key)
 

Function Documentation

◆ mupnp_dictionary_delete()

void mupnp_dictionary_delete ( mUpnpDictionary * dir)

Destroy a dictionary list

Parameters
dirThe dictionary list in question

◆ mupnp_dictionary_getelement()

mUpnpDictionaryElement * mupnp_dictionary_getelement ( mUpnpDictionary * dir,
const char * key )

◆ mupnp_dictionary_getvalue()

const char * mupnp_dictionary_getvalue ( mUpnpDictionary * dir,
const char * key )

Get a value of the specified key

Parameters
dirThe dictionary list in question
keyName to search.
Returns
Value of the specified key.

◆ mupnp_dictionary_new()

mUpnpDictionary * mupnp_dictionary_new ( void )

Create a new dictionary list

Returns
Dictionary list

◆ mupnp_dictionary_setvalue()

void mupnp_dictionary_setvalue ( mUpnpDictionary * dir,
const char * key,
const char * value )

Set a new element into a dictionary

Parameters
dirThe dictionary list in question
keyName to set.
valueValue to set.