diff options
| author | 2009-04-15 22:35:56 +0200 | |
|---|---|---|
| committer | 2009-04-15 22:35:56 +0200 | |
| commit | 21e389bca01794aeca1e79c92a86fc060549b835 (patch) | |
| tree | a116561eb9c682b31e1d560d5b1eb75f28ff6d8e /include/plist/plist.h | |
| parent | 2abf518f8e92957df0dd74c06c49a5eb17845865 (diff) | |
| download | libplist-21e389bca01794aeca1e79c92a86fc060549b835.tar.gz libplist-21e389bca01794aeca1e79c92a86fc060549b835.tar.bz2 | |
Add special accessor for structured types in API.
Diffstat (limited to 'include/plist/plist.h')
| -rw-r--r-- | include/plist/plist.h | 19 |
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 * |
