summaryrefslogtreecommitdiffstats
path: root/include
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
parentc2f396a53745a74dd58de3b55092a77e0e9f639d (diff)
downloadlibplist-706771e357570d1bee268fc7c2233506da967bcd.tar.gz
libplist-706771e357570d1bee268fc7c2233506da967bcd.tar.bz2
Add new plist_sort() function
Diffstat (limited to 'include')
-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"
1072 int plist_data_val_contains(plist_t datanode, const uint8_t* cmpval, size_t n); 1072 int plist_data_val_contains(plist_t datanode, const uint8_t* cmpval, size_t n);
1073 1073
1074 /** 1074 /**
1075 * Sort all PLIST_DICT key/value pairs in a property list lexicographically
1076 * by key. Recurses into the child nodes if necessary.
1077 *
1078 * @param plist The property list to perform the sorting operation on.
1079 */
1080 void plist_sort(plist_t plist);
1081
1082 /**
1075 * Free memory allocated by relevant libplist API calls: 1083 * Free memory allocated by relevant libplist API calls:
1076 * - plist_to_xml() 1084 * - plist_to_xml()
1077 * - plist_to_bin() 1085 * - plist_to_bin()