Skip to content

Commit

Permalink
Create bplist.h
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanKubata committed Apr 22, 2015
1 parent 0867303 commit 98723c3
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions bplist.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
struct plist_node
{
int type;
union
{
struct
{
struct plist_nvp** nodes;
int count;
} dict_value;
struct
{
struct plist_node** nodes;
int count;
} array_value;
int boolean_value;
double double_value;
int integer_value;
char* string_value;
struct
{
unsigned char* data;
int length;
} data_value;
} value;
};

typedef struct plist_node plist_node;


struct plist_nvp
{
struct plist_node* key;
struct plist_node* value;
};

typedef struct plist_nvp plist_nvp;

plist_node* parse_bplist(unsigned char* data, int length);
void free_bplist(plist_node* bplist);
void retrieve_encrypted_keys(plist_node* root, unsigned char** param1, unsigned char** param2);

0 comments on commit 98723c3

Please sign in to comment.