summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plist.c')
-rw-r--r--src/plist.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plist.c b/src/plist.c
index df98a7a..98ca34f 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -267,6 +267,15 @@ void plist_array_remove_item(plist_t node, uint32_t n)
267 return; 267 return;
268} 268}
269 269
270uint32_t plist_dict_get_size(plist_t node)
271{
272 uint32_t ret = 0;
273 if (node && PLIST_DICT == plist_get_node_type(node)) {
274 ret = g_node_n_children(node);
275 }
276 return ret;
277}
278
270void plist_dict_new_iter(plist_t node, plist_dict_iter *iter) 279void plist_dict_new_iter(plist_t node, plist_dict_iter *iter)
271{ 280{
272 if (iter && *iter == NULL) { 281 if (iter && *iter == NULL) {