Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
393f1b4b
Commit
393f1b4b
authored
Oct 11, 2009
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore plist_dict_get_size function.
parent
583bb249
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
plist.h
include/plist/plist.h
+8
-0
plist.c
src/plist.c
+9
-0
No files found.
include/plist/plist.h
View file @
393f1b4b
...
...
@@ -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
...
...
src/plist.c
View file @
393f1b4b
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment