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
796e1d08
Commit
796e1d08
authored
Mar 27, 2009
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Conform to Python naming rules.
parent
fe3a734e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
plist.i
swig/plist.i
+19
-19
No files found.
swig/plist.i
View file @
796e1d08
...
@@ -69,103 +69,103 @@ typedef struct {
...
@@ -69,103 +69,103 @@ typedef struct {
plist_add_sub_node($self->node, subnode);
plist_add_sub_node($self->node, subnode);
}
}
void
AddSubK
ey(char* k) {
void
add_sub_k
ey(char* k) {
plist_add_sub_key_el($self->node, k);
plist_add_sub_key_el($self->node, k);
}
}
void
AddSubS
tring(char* s) {
void
add_sub_s
tring(char* s) {
plist_add_sub_string_el($self->node, s);
plist_add_sub_string_el($self->node, s);
}
}
void
AddSubB
ool(char b) {
void
add_sub_b
ool(char b) {
plist_add_sub_bool_el($self->node, b);
plist_add_sub_bool_el($self->node, b);
}
}
void
AddSubUI
nt(uint64_t i) {
void
add_sub_ui
nt(uint64_t i) {
plist_add_sub_uint_el($self->node, i);
plist_add_sub_uint_el($self->node, i);
}
}
void
AddSubR
eal(double d) {
void
add_sub_r
eal(double d) {
plist_add_sub_real_el($self->node, d);
plist_add_sub_real_el($self->node, d);
}
}
void
AddSubD
ata(char* v, uint64_t l) {
void
add_sub_d
ata(char* v, uint64_t l) {
plist_add_sub_data_el($self->node, v, l);
plist_add_sub_data_el($self->node, v, l);
}
}
PListNode*
GetFirstC
hild() {
PListNode*
get_first_c
hild() {
PListNode* plist = (PListNode*) malloc(sizeof(PListNode));
PListNode* plist = (PListNode*) malloc(sizeof(PListNode));
plist_get_first_child(&$self->node);
plist_get_first_child(&$self->node);
return plist;
return plist;
}
}
PListNode*
GetNextS
ibling() {
PListNode*
get_next_s
ibling() {
PListNode* plist = (PListNode*) malloc(sizeof(PListNode));
PListNode* plist = (PListNode*) malloc(sizeof(PListNode));
plist_get_next_sibling(&$self->node);
plist_get_next_sibling(&$self->node);
return plist;
return plist;
}
}
PListNode*
GetPrevS
ibling() {
PListNode*
get_prev_s
ibling() {
PListNode* plist = (PListNode*) malloc(sizeof(PListNode));
PListNode* plist = (PListNode*) malloc(sizeof(PListNode));
plist_get_prev_sibling(&$self->node);
plist_get_prev_sibling(&$self->node);
return plist;
return plist;
}
}
char*
AsK
ey() {
char*
as_k
ey() {
char* k = NULL;
char* k = NULL;
plist_get_key_val($self->node, &k);
plist_get_key_val($self->node, &k);
return k;
return k;
}
}
char*
AsS
tring() {
char*
as_s
tring() {
char* s = NULL;
char* s = NULL;
plist_get_string_val($self->node, &s);
plist_get_string_val($self->node, &s);
return s;
return s;
}
}
char
AsB
ool() {
char
as_b
ool() {
char b;
char b;
plist_get_bool_val($self->node, &b);
plist_get_bool_val($self->node, &b);
return b;
return b;
}
}
uint64_t
AsUI
nt() {
uint64_t
as_ui
nt() {
uint64_t i = 0;
uint64_t i = 0;
plist_get_uint_val($self->node, &i);
plist_get_uint_val($self->node, &i);
return i;
return i;
}
}
double
AsR
eal() {
double
as_r
eal() {
double d = 0;
double d = 0;
plist_get_real_val($self->node, &d);
plist_get_real_val($self->node, &d);
return d;
return d;
}
}
char*
AsD
ata() {
char*
as_d
ata() {
char* v;
char* v;
uint64_t l;
uint64_t l;
plist_get_data_val($self->node, &v, &l);
plist_get_data_val($self->node, &v, &l);
return v;
return v;
}
}
plist_type
GetT
ype() {
plist_type
get_t
ype() {
return plist_get_node_type($self->node);
return plist_get_node_type($self->node);
}
}
PListNode*
FindSubNodeByS
tring(char* s) {
PListNode*
find_sub_node_by_s
tring(char* s) {
PListNode* plist = (PListNode*) malloc(sizeof(PListNode));
PListNode* plist = (PListNode*) malloc(sizeof(PListNode));
plist = plist_find_node_by_string($self->node, s);
plist = plist_find_node_by_string($self->node, s);
return plist;
return plist;
}
}
char*
ToX
ml () {
char*
to_x
ml () {
char* s = NULL;
char* s = NULL;
uint32_t l;
uint32_t l;
plist_to_xml($self->node, &s, &l);
plist_to_xml($self->node, &s, &l);
return s;
return s;
}
}
char*
ToB
in () {
char*
to_b
in () {
char* s = NULL;
char* s = NULL;
uint32_t l;
uint32_t l;
plist_to_bin($self->node, &s, &l);
plist_to_bin($self->node, &s, &l);
...
...
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