summaryrefslogtreecommitdiffstats
path: root/include/plist/plist.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/plist/plist.h')
-rw-r--r--include/plist/plist.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h
index 7bdd00a..b7b0fa4 100644
--- a/include/plist/plist.h
+++ b/include/plist/plist.h
@@ -140,6 +140,25 @@ extern "C" {
140 */ 140 */
141 PLIST_API plist_t plist_get_prev_sibling(plist_t node); 141 PLIST_API plist_t plist_get_prev_sibling(plist_t node);
142 142
143/**
144 * Get the nth child of a #PLIST_ARRAY node.
145 *
146 * @param node the node of type #PLIST_ARRAY
147 * @param n the index of the child to get. Range is [0, array_size[
148 * @return the nth children or NULL if node is not of type #PLIST_ARRAY
149 */
150 PLIST_API plist_t plist_get_array_nth_el(plist_t node, uint32_t n);
151
152/**
153 * Get the child of a #PLIST_DICT node from the associated key value.
154 *
155 * @param node the node of type #PLIST_DICT
156 * @param key the key associated to the requested value
157 * @return the key associated value or NULL if node is not of type #PLIST_DICT
158 */
159 PLIST_API plist_t plist_get_dict_el_from_key(plist_t node, const char *key);
160
161
143/******************************************** 162/********************************************
144 * * 163 * *
145 * Setters * 164 * Setters *