diff options
| author | 2013-12-13 00:32:06 +0100 | |
|---|---|---|
| committer | 2013-12-13 00:32:06 +0100 | |
| commit | 3b7647499474619b3e24bf01105b6b037887a0ed (patch) | |
| tree | 743215893ce32c6d535f0dc143cb3e9f4060a378 /include | |
| parent | 8f644ca58ea2174241a3a3ddac943efdf353642c (diff) | |
| download | libplist-3b7647499474619b3e24bf01105b6b037887a0ed.tar.gz libplist-3b7647499474619b3e24bf01105b6b037887a0ed.tar.bz2 | |
add new plist_dict_merge() function
Diffstat (limited to 'include')
| -rw-r--r-- | include/plist/plist.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h index 546e108..41588a8 100644 --- a/include/plist/plist.h +++ b/include/plist/plist.h | |||
| @@ -336,6 +336,16 @@ extern "C" | |||
| 336 | */ | 336 | */ |
| 337 | PLIST_API void plist_dict_remove_item(plist_t node, const char* key); | 337 | PLIST_API void plist_dict_remove_item(plist_t node, const char* key); |
| 338 | 338 | ||
| 339 | /** | ||
| 340 | * Merge a dictionary into another. This will add all key/value pairs | ||
| 341 | * from the source dictionary to the target dictionary, overwriting | ||
| 342 | * any existing key/value pairs that are already present in target. | ||
| 343 | * | ||
| 344 | * @param target pointer to an existing node of type #PLIST_DICT | ||
| 345 | * @param source node of type #PLIST_DICT that should be merged into target | ||
| 346 | */ | ||
| 347 | PLIST_API void plist_dict_merge(plist_t *target, plist_t source); | ||
| 348 | |||
| 339 | 349 | ||
| 340 | /******************************************** | 350 | /******************************************** |
| 341 | * * | 351 | * * |
