summaryrefslogtreecommitdiffstats
path: root/include/plist
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-02-03 16:48:34 +0100
committerGravatar Nikias Bassen2023-02-03 16:48:34 +0100
commit706771e357570d1bee268fc7c2233506da967bcd (patch)
tree4239e647149f94c5f6b5df998a88c8daf39a7b23 /include/plist
parentc2f396a53745a74dd58de3b55092a77e0e9f639d (diff)
downloadlibplist-706771e357570d1bee268fc7c2233506da967bcd.tar.gz
libplist-706771e357570d1bee268fc7c2233506da967bcd.tar.bz2
Add new plist_sort() function
Diffstat (limited to 'include/plist')
-rw-r--r--include/plist/plist.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h
index 2bb947f..0a21499 100644
--- a/include/plist/plist.h
+++ b/include/plist/plist.h
@@ -1072,6 +1072,14 @@ extern "C"
int plist_data_val_contains(plist_t datanode, const uint8_t* cmpval, size_t n);
/**
+ * Sort all PLIST_DICT key/value pairs in a property list lexicographically
+ * by key. Recurses into the child nodes if necessary.
+ *
+ * @param plist The property list to perform the sorting operation on.
+ */
+ void plist_sort(plist_t plist);
+
+ /**
* Free memory allocated by relevant libplist API calls:
* - plist_to_xml()
* - plist_to_bin()