|
mUPnP for C
|
Data Structures | |
| struct | _mUpnpDictionary |
| The generic wrapper struct for mUPnP's dictionarys. More... | |
Macros | |
| #define | mupnp_dictionary_element_setkey(dirElem, name) |
| #define | mupnp_dictionary_element_getkey(dirElem) |
| #define | mupnp_dictionary_element_setvalue(dirElem, val) |
| #define | mupnp_dictionary_element_getvalue(dirElem) |
| #define | mupnp_dictionary_element_next(dirElem) |
| #define | mupnp_dictionary_element_remove(dirElem) |
| #define | mupnp_dictionary_clear(dir) |
| #define | mupnp_dictionary_size(dir) |
| #define | mupnp_dictionary_gets(dir) |
| #define | mupnp_dictionary_add(dir, dirElem) |
| #define | mupnp_dictionary_remove(dirElem) |
Typedefs | |
| typedef struct _mUpnpDictionary | mUpnpDictionaryElement |
| The generic wrapper struct for mUPnP's dictionarys. | |
| typedef struct _mUpnpDictionary | mUpnpDictionary |
Functions | |
| mUpnpDictionaryElement * | mupnp_dictionary_element_new (void) |
| bool | mupnp_dictionary_element_delete (mUpnpDictionaryElement *dirElem) |
| mUpnpDictionary * | mupnp_dictionary_new (void) |
| void | mupnp_dictionary_delete (mUpnpDictionary *dir) |
| mUpnpDictionaryElement * | mupnp_dictionary_get (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) |
| #define mupnp_dictionary_add | ( | dir, | |
| dirElem ) |
Add a dictionary into a dictionary list
| dir | The dictionary list in question |
| dirElem | The dictionary to add to the list |
| #define mupnp_dictionary_clear | ( | dir | ) |
Clear the contents of a dictionary list
| dir | Dictionary list in question |
| #define mupnp_dictionary_element_getkey | ( | dirElem | ) |
| #define mupnp_dictionary_element_getvalue | ( | dirElem | ) |
| #define mupnp_dictionary_element_next | ( | dirElem | ) |
| #define mupnp_dictionary_element_remove | ( | dirElem | ) |
| #define mupnp_dictionary_element_setkey | ( | dirElem, | |
| name ) |
Set a key
| dirElem | Dictionary struct |
| name | String to set |
| #define mupnp_dictionary_element_setvalue | ( | dirElem, | |
| val ) |
Set a value
| dirElem | Dictionary struct |
| value | String to set |
| #define mupnp_dictionary_gets | ( | dir | ) |
Get the first actual item from a dictionary list to use as an iterator
| dir | The dictionary list in question |
| #define mupnp_dictionary_remove | ( | dirElem | ) |
Remove a dictionary from dictionary list
| dirElem | The dictionary to be removed |
| #define mupnp_dictionary_size | ( | dir | ) |
Get the size of a dictionary list
| dir | The dictionary list in question |
| typedef struct _mUpnpDictionary mUpnpDictionary |
| typedef struct _mUpnpDictionary mUpnpDictionaryElement |
The generic wrapper struct for mUPnP's dictionarys.
This wrapper has been created to enable 100% code compatibility between different platforms (Linux, Win32 etc..)
| void mupnp_dictionary_delete | ( | mUpnpDictionary * | dir | ) |
Destroy a dictionary list
| dir | The dictionary list in question |
| bool mupnp_dictionary_element_delete | ( | mUpnpDictionaryElement * | dirElem | ) |
Destroy a dictionary.
| dirElem | Dictionary to destroy |
| mUpnpDictionaryElement * mupnp_dictionary_element_new | ( | void | ) |
Create a new dictionary
| mUpnpDictionaryElement * mupnp_dictionary_get | ( | mUpnpDictionary * | dir, |
| const char * | key ) |
Get a element of the specified key
| dir | The dictionary list in question |
| key | Name to search. |
| const char * mupnp_dictionary_getvalue | ( | mUpnpDictionary * | dir, |
| const char * | key ) |
Get a value of the specified key
| dir | The dictionary list in question |
| key | Name to search. |
| mUpnpDictionary * mupnp_dictionary_new | ( | void | ) |
Create a new dictionary list
| void mupnp_dictionary_setvalue | ( | mUpnpDictionary * | dir, |
| const char * | key, | ||
| const char * | value ) |
Set a new element into a dictionary
| dir | The dictionary list in question |
| key | Name to set. |
| value | Value to set. |