diff options
| author | 2009-07-18 12:08:13 +0200 | |
|---|---|---|
| committer | 2009-07-18 12:08:13 +0200 | |
| commit | 07c1d3c90512f5fa057e7eff7d307cffe6258111 (patch) | |
| tree | 8c16ba88eff9614a82c9b3089a4a5515e9004414 /include | |
| parent | f605777d9739d2f8873b9ab65929e8aee1ebb64e (diff) | |
| download | libplist-07c1d3c90512f5fa057e7eff7d307cffe6258111.tar.gz libplist-07c1d3c90512f5fa057e7eff7d307cffe6258111.tar.bz2 | |
Add function to get parent node in API and python bindings.
Diffstat (limited to 'include')
| -rw-r--r-- | include/plist/plist.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h index a075fc6..6388603 100644 --- a/include/plist/plist.h +++ b/include/plist/plist.h | |||
| @@ -148,6 +148,13 @@ extern "C" { | |||
| 148 | PLIST_API plist_t plist_get_prev_sibling(plist_t node); | 148 | PLIST_API plist_t plist_get_prev_sibling(plist_t node); |
| 149 | 149 | ||
| 150 | /** | 150 | /** |
| 151 | * Get the parent of a node | ||
| 152 | * | ||
| 153 | * @param node the parent (NULL if node is root) | ||
| 154 | */ | ||
| 155 | PLIST_API plist_t plist_get_parent(plist_t node); | ||
| 156 | |||
| 157 | /** | ||
| 151 | * Get the nth child of a #PLIST_ARRAY node. | 158 | * Get the nth child of a #PLIST_ARRAY node. |
| 152 | * | 159 | * |
| 153 | * @param node the node of type #PLIST_ARRAY | 160 | * @param node the node of type #PLIST_ARRAY |
