diff options
| author | 2008-12-11 23:03:21 +0100 | |
|---|---|---|
| committer | 2008-12-11 23:03:21 +0100 | |
| commit | 18d1ee3b0f17325fdffe0cf3e2770a3f0f45a1b9 (patch) | |
| tree | 87a08a825b7a75bc0b0ce43de4801b1b7fd546cb /src/plist.h | |
| parent | cd95e9bc6e23949b5cef3996132b79bd8803467a (diff) | |
| download | libimobiledevice-18d1ee3b0f17325fdffe0cf3e2770a3f0f45a1b9.tar.gz libimobiledevice-18d1ee3b0f17325fdffe0cf3e2770a3f0f45a1b9.tar.bz2 | |
move stuff around to make code more organized.
Diffstat (limited to 'src/plist.h')
| -rw-r--r-- | src/plist.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plist.h b/src/plist.h index 63f67f7..e3f3f59 100644 --- a/src/plist.h +++ b/src/plist.h | |||
| @@ -47,6 +47,20 @@ typedef enum { | |||
| 47 | } plist_type; | 47 | } plist_type; |
| 48 | 48 | ||
| 49 | 49 | ||
| 50 | struct plist_data { | ||
| 51 | union { | ||
| 52 | char boolval; | ||
| 53 | uint64_t intval; | ||
| 54 | double realval; | ||
| 55 | char *strval; | ||
| 56 | wchar_t *unicodeval; | ||
| 57 | char *buff; | ||
| 58 | }; | ||
| 59 | uint64_t length; | ||
| 60 | plist_type type; | ||
| 61 | }; | ||
| 62 | |||
| 63 | |||
| 50 | 64 | ||
| 51 | typedef GNode *plist_t; | 65 | typedef GNode *plist_t; |
| 52 | typedef GNode *dict_t; | 66 | typedef GNode *dict_t; |
| @@ -67,4 +81,5 @@ void bin_to_plist(const char *plist_bin, uint32_t length, plist_t * plist); | |||
| 67 | GNode *find_query_node(plist_t plist, char *key, char *request); | 81 | GNode *find_query_node(plist_t plist, char *key, char *request); |
| 68 | GNode *find_node(plist_t plist, plist_type type, void *value); | 82 | GNode *find_node(plist_t plist, plist_type type, void *value); |
| 69 | void get_type_and_value(GNode * node, plist_type * type, void *value); | 83 | void get_type_and_value(GNode * node, plist_type * type, void *value); |
| 84 | |||
| 70 | #endif | 85 | #endif |
