diff options
| author | 2026-04-27 01:45:33 +0200 | |
|---|---|---|
| committer | 2026-04-27 01:45:33 +0200 | |
| commit | d35b31d0a2661b6346a1592a5eb7b70e66b2a141 (patch) | |
| tree | a65156248dfd4df7c9301daf2a786a3469586147 /test/data/uid.bplist | |
| parent | dddb76d74a646a7ec41cfa6b9f7772830b7acbd2 (diff) | |
| download | libplist-d35b31d0a2661b6346a1592a5eb7b70e66b2a141.tar.gz libplist-d35b31d0a2661b6346a1592a5eb7b70e66b2a141.tar.bz2 | |
Add error handling to all modification functions
Convert all array/dict modification functions from void to plist_err_t return type:
- plist_array_set_item: replace at index n
- plist_array_append_item: append to end
- plist_array_insert_item: insert at position n
- plist_array_remove_item: remove item at index n
- plist_array_item_remove: remove item from its array parent
- plist_dict_set_item: replace or insert key/value
- plist_dict_remove_item: remove key/value pair
- plist_dict_merge: merge source dict into target
Returns:
- PLIST_ERR_SUCCESS on success
- PLIST_ERR_INVALID_ARG for invalid arguments (NULL, wrong type, out of range, etc.)
- PLIST_ERR_NO_MEM on memory allocation failure
- PLIST_ERR_UNKNOWN on unexpected internal errors
Header documentation updated with full error code semantics for each function.
Diffstat (limited to 'test/data/uid.bplist')
0 files changed, 0 insertions, 0 deletions
