Commit 393f1b4b authored by Jonathan Beck's avatar Jonathan Beck

Restore plist_dict_get_size function.

parent 583bb249
......@@ -250,6 +250,14 @@ extern "C" {
* *
********************************************/
/**
* Get size of a #PLIST_DICT node.
*
* @param node the node of type #PLIST_DICT
* @return size of the #PLIST_DICT node
*/
PLIST_API uint32_t plist_dict_get_size(plist_t node);
/**
* Create iterator of a #PLIST_DICT node.
* The allocated iterator shoult be freed with tandard free function
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment