A pair of strings.
More...
#include <key_value_pair.h>
◆ AllocateKeyValuePair()
| KeyValuePair * AllocateKeyValuePair |
( |
const char * |
key_s, |
|
|
const char * |
value_s |
|
) |
| |
Allocate a KeyValuePair.
- Parameters
-
| key_s | This string will be deep copied and be the kvp_key_s in the KeyValuePair. |
| value_s | This string will be deep copied and be the kvp_value_s in the KeyValuePair. |
- Returns
- A newly-allocated KeyValuePair or
NULL upon error.
◆ FreeKeyValuePair()
◆ AllocateKeyValuePairNodeByParts()
| KeyValuePairNode * AllocateKeyValuePairNodeByParts |
( |
const char * |
key_s, |
|
|
const char * |
value_s |
|
) |
| |
◆ AllocateKeyValuePairNode()
◆ FreeKeyValuePairNode()
| void FreeKeyValuePairNode |
( |
ListItem * |
node_p | ) |
|
◆ GetKeyValuePairAsJSON()
| json_t * GetKeyValuePairAsJSON |
( |
const KeyValuePair * |
kvp_p | ) |
|
Get the JSON representation of a KeyValuePair.
- Parameters
-
- Returns
- The newly-allocated JSON representation fof the given KeyValuePair or
NULL upon error.
◆ GetKeyValuePairFromJSON()
| KeyValuePair * GetKeyValuePairFromJSON |
( |
const json_t * |
json_p | ) |
|
Create a KeyValuePair from its JSON representation.
- Parameters
-
| json_p | The JSON representation to get the KeyValuePair from.. |
- Returns
- The newly-allocated KeyValuePair or
NULL upon error.
◆ kvp_key_s
The string used as a key.
◆ kvp_value_s
The string used as a value.
The documentation for this struct was generated from the following file: