diff options
Diffstat (limited to 'include/plist')
| -rw-r--r-- | include/plist/plist.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h index 41588a8..b482199 100644 --- a/include/plist/plist.h +++ b/include/plist/plist.h | |||
| @@ -310,20 +310,21 @@ extern "C" | |||
| 310 | 310 | ||
| 311 | /** | 311 | /** |
| 312 | * Set item identified by key in a #PLIST_DICT node. | 312 | * Set item identified by key in a #PLIST_DICT node. |
| 313 | * The previous item at index n will be freed using #plist_free | 313 | * The previous item identified by key will be freed using #plist_free. |
| 314 | * If there is no item for the given key a new item will be inserted. | ||
| 314 | * | 315 | * |
| 315 | * @param node the node of type #PLIST_DICT | 316 | * @param node the node of type #PLIST_DICT |
| 316 | * @param item the new item associated to key | 317 | * @param item the new item associated to key |
| 317 | * @param key the identifier of the item to get. Assert if identifier is not present. | 318 | * @param key the identifier of the item to set. |
| 318 | */ | 319 | */ |
| 319 | PLIST_API void plist_dict_set_item(plist_t node, const char* key, plist_t item); | 320 | PLIST_API void plist_dict_set_item(plist_t node, const char* key, plist_t item); |
| 320 | 321 | ||
| 321 | /** | 322 | /** |
| 322 | * Insert a new item at position n in a #PLIST_DICT node. | 323 | * Insert a new item into a #PLIST_DICT node. |
| 323 | * | 324 | * |
| 324 | * @param node the node of type #PLIST_DICT | 325 | * @param node the node of type #PLIST_DICT |
| 325 | * @param item the new item to insert | 326 | * @param item the new item to insert |
| 326 | * @param key The identifier of the item to insert. Assert if identifier already present. | 327 | * @param key The identifier of the item to insert. |
| 327 | */ | 328 | */ |
| 328 | PLIST_API void plist_dict_insert_item(plist_t node, const char* key, plist_t item); | 329 | PLIST_API void plist_dict_insert_item(plist_t node, const char* key, plist_t item); |
| 329 | 330 | ||
