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
e60af04e
Commit
e60af04e
authored
Apr 15, 2009
by
Martin Szulecki
Committed by
Jonathan Beck
Apr 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add from_xml, from_bin, find_node_by_key and rename AddSubNode in Python API
parent
460f5b42
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
plist.i
swig/plist.i
+16
-2
No files found.
swig/plist.i
View file @
e60af04e
...
...
@@ -66,7 +66,7 @@ typedef struct {
free($self);
}
void
AddSubN
ode(PListNode* subnode) {
void
add_sub_n
ode(PListNode* subnode) {
plist_add_sub_node($self->node, subnode);
}
...
...
@@ -153,7 +153,13 @@ typedef struct {
return plist_get_node_type($self->node);
}
PListNode* find_sub_node_by_string(char* s) {
PListNode* find_node_by_key(char *s) {
PListNode* plist = (PListNode*) malloc(sizeof(PListNode));
plist = plist_find_node_by_key($self->node, s);
return plist;
}
PListNode* find_node_by_string(char* s) {
PListNode* plist = (PListNode*) malloc(sizeof(PListNode));
plist = plist_find_node_by_string($self->node, s);
return plist;
...
...
@@ -172,5 +178,13 @@ typedef struct {
plist_to_bin($self->node, &s, &l);
return s;
}
void from_xml (char* xml) {
plist_from_xml(xml, strlen(xml), &$self->node);
}
void from_bin (char* data, uint64_t len) {
plist_from_bin(data, len, &$self->node);
}
};
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