summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-10-11 15:49:05 +0200
committerGravatar Jonathan Beck2009-10-11 15:49:05 +0200
commit393f1b4b2825b8cf6e67d22df8c255633696435f (patch)
treed06639e4c5086d1958f6a4d6d5c1bc2a0d84a61f /src/plist.c
parent583bb249458fcca6cdf2581896681e618cf4547e (diff)
downloadlibplist-393f1b4b2825b8cf6e67d22df8c255633696435f.tar.gz
libplist-393f1b4b2825b8cf6e67d22df8c255633696435f.tar.bz2
Restore plist_dict_get_size function.
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)
return;
}
+uint32_t plist_dict_get_size(plist_t node)
+{
+ uint32_t ret = 0;
+ if (node && PLIST_DICT == plist_get_node_type(node)) {
+ ret = g_node_n_children(node);
+ }
+ return ret;
+}
+
void plist_dict_new_iter(plist_t node, plist_dict_iter *iter)
{
if (iter && *iter == NULL) {