diff options
| author | 2019-05-19 01:22:04 +0200 | |
|---|---|---|
| committer | 2019-05-19 01:22:04 +0200 | |
| commit | 9555e71d9887d0d5caf87341dc47d9ad313bb609 (patch) | |
| tree | f1168779ed3931c57382533426b39e65d0d5869b /include | |
| parent | 23e5a7636bba1565d000adcd4c3debc0788398c5 (diff) | |
| download | libplist-9555e71d9887d0d5caf87341dc47d9ad313bb609.tar.gz libplist-9555e71d9887d0d5caf87341dc47d9ad313bb609.tar.bz2 | |
Add plist_array_item_remove() to allow removing an array's child node without relying on the index
Diffstat (limited to 'include')
| -rw-r--r-- | include/plist/plist.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h index 63e9d84..bba735d 100644 --- a/include/plist/plist.h +++ b/include/plist/plist.h | |||
| @@ -288,6 +288,14 @@ extern "C" | |||
| 288 | void plist_array_remove_item(plist_t node, uint32_t n); | 288 | void plist_array_remove_item(plist_t node, uint32_t n); |
| 289 | 289 | ||
| 290 | /** | 290 | /** |
| 291 | * Remove a node that is a child node of a #PLIST_ARRAY node. | ||
| 292 | * node will be freed using #plist_free. | ||
| 293 | * | ||
| 294 | * @param node The node to be removed from its #PLIST_ARRAY parent. | ||
| 295 | */ | ||
| 296 | void plist_array_item_remove(plist_t node); | ||
| 297 | |||
| 298 | /** | ||
| 291 | * Create an iterator of a #PLIST_ARRAY node. | 299 | * Create an iterator of a #PLIST_ARRAY node. |
| 292 | * The allocated iterator should be freed with the standard free function. | 300 | * The allocated iterator should be freed with the standard free function. |
| 293 | * | 301 | * |
