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
c0c27eb5
Commit
c0c27eb5
authored
Jan 12, 2009
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a function to find a key node by its value.
parent
74dae54b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
plist.h
include/plist/plist.h
+1
-0
plist.c
src/plist.c
+5
-0
No files found.
include/plist/plist.h
View file @
c0c27eb5
...
@@ -73,6 +73,7 @@ plist_t plist_get_prev_sibling(plist_t node);
...
@@ -73,6 +73,7 @@ plist_t plist_get_prev_sibling(plist_t node);
//utili function to find first (and only the first encountred) corresponding node
//utili function to find first (and only the first encountred) corresponding node
plist_t
plist_find_node
(
plist_t
plist
,
plist_type
type
,
void
*
value
,
uint64_t
length
);
plist_t
plist_find_node
(
plist_t
plist
,
plist_type
type
,
void
*
value
,
uint64_t
length
);
plist_t
plist_find_node_by_key
(
plist_t
plist
,
char
*
value
);
plist_t
plist_find_node_by_string
(
plist_t
plist
,
char
*
value
);
plist_t
plist_find_node_by_string
(
plist_t
plist
,
char
*
value
);
void
plist_get_type_and_value
(
plist_t
node
,
plist_type
*
type
,
void
*
value
,
uint64_t
*
length
);
void
plist_get_type_and_value
(
plist_t
node
,
plist_type
*
type
,
void
*
value
,
uint64_t
*
length
);
...
...
src/plist.c
View file @
c0c27eb5
...
@@ -194,6 +194,11 @@ plist_t plist_find_node(plist_t plist, plist_type type, void *value, uint64_t le
...
@@ -194,6 +194,11 @@ plist_t plist_find_node(plist_t plist, plist_type type, void *value, uint64_t le
return
NULL
;
return
NULL
;
}
}
plist_t
plist_find_node_by_key
(
plist_t
plist
,
char
*
value
)
{
return
plist_find_node
(
plist
,
PLIST_KEY
,
value
,
strlen
(
value
));
}
plist_t
plist_find_node_by_string
(
plist_t
plist
,
char
*
value
)
plist_t
plist_find_node_by_string
(
plist_t
plist
,
char
*
value
)
{
{
return
plist_find_node
(
plist
,
PLIST_STRING
,
value
,
strlen
(
value
));
return
plist_find_node
(
plist
,
PLIST_STRING
,
value
,
strlen
(
value
));
...
...
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