|
Cyber Garage Portable Runtime (CGPR) for C
|
Data Structures | |
| struct | _CGDictionary |
| The generic wrapper struct for mUPnP's dictionarys. More... | |
Macros | |
| #define | cg_dictionary_element_setkey(dirElem, name) |
| #define | cg_dictionary_element_getkey(dirElem) |
| #define | cg_dictionary_element_setvalue(dirElem, val) |
| #define | cg_dictionary_element_getvalue(dirElem) |
| #define | cg_dictionary_element_next(dirElem) |
| #define | cg_dictionary_element_remove(dirElem) |
| #define | cg_dictionary_clear(dir) |
| #define | cg_dictionary_size(dir) |
| #define | cg_dictionary_gets(dir) |
| #define | cg_dictionary_add(dir, dirElem) |
| #define | cg_dictionary_remove(dirElem) |
Typedefs | |
| typedef struct _CGDictionary | CGDictionaryElement |
| The generic wrapper struct for mUPnP's dictionarys. | |
| typedef struct _CGDictionary | CGDictionary |
Functions | |
| CGDictionaryElement * | cg_dictionary_element_new (void) |
| bool | cg_dictionary_element_delete (CGDictionaryElement *dirElem) |
| CGDictionary * | cg_dictionary_new (void) |
| void | cg_dictionary_delete (CGDictionary *dir) |
| CGDictionaryElement * | cg_dictionary_get (CGDictionary *dir, const char *key) |
| void | cg_dictionary_setvalue (CGDictionary *dir, const char *key, const char *value) |
| const char * | cg_dictionary_getvalue (CGDictionary *dir, const char *key) |
| #define cg_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 cg_dictionary_clear | ( | dir | ) |
Clear the contents of a dictionary list
| dir | Dictionary list in question |
| #define cg_dictionary_element_getkey | ( | dirElem | ) |
| #define cg_dictionary_element_getvalue | ( | dirElem | ) |
| #define cg_dictionary_element_next | ( | dirElem | ) |
| #define cg_dictionary_element_remove | ( | dirElem | ) |
| #define cg_dictionary_element_setkey | ( | dirElem, | |
| name ) |
Set a key
| dirElem | Dictionary struct |
| name | String to set |
| #define cg_dictionary_element_setvalue | ( | dirElem, | |
| val ) |
Set a value
| dirElem | Dictionary struct |
| value | String to set |
| #define cg_dictionary_gets | ( | dir | ) |
Get the first actual item from a dictionary list to use as an iterator
| dir | The dictionary list in question |
| #define cg_dictionary_remove | ( | dirElem | ) |
Remove a dictionary from dictionary list
| dirElem | The dictionary to be removed |
| #define cg_dictionary_size | ( | dir | ) |
Get the size of a dictionary list
| dir | The dictionary list in question |
| typedef struct _CGDictionary CGDictionary |
| typedef struct _CGDictionary CGDictionaryElement |
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 cg_dictionary_delete | ( | CGDictionary * | dir | ) |
Destroy a dictionary list
| dir | The dictionary list in question |
| bool cg_dictionary_element_delete | ( | CGDictionaryElement * | dirElem | ) |
Destroy a dictionary.
| dirElem | Dictionary to destroy |
| CGDictionaryElement * cg_dictionary_element_new | ( | void | ) |
Create a new dictionary
| CGDictionaryElement * cg_dictionary_get | ( | CGDictionary * | dir, |
| const char * | key ) |
Get a element of the specified key
| dir | The dictionary list in question |
| key | Name to search. |
| const char * cg_dictionary_getvalue | ( | CGDictionary * | dir, |
| const char * | key ) |
Get a value of the specified key
| dir | The dictionary list in question |
| key | Name to search. |
| CGDictionary * cg_dictionary_new | ( | void | ) |
Create a new dictionary list
| void cg_dictionary_setvalue | ( | CGDictionary * | 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. |