From 18d1ee3b0f17325fdffe0cf3e2770a3f0f45a1b9 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Thu, 11 Dec 2008 23:03:21 +0100 Subject: move stuff around to make code more organized. --- src/plist.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/plist.h') 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 { } plist_type; +struct plist_data { + union { + char boolval; + uint64_t intval; + double realval; + char *strval; + wchar_t *unicodeval; + char *buff; + }; + uint64_t length; + plist_type type; +}; + + typedef GNode *plist_t; typedef GNode *dict_t; @@ -67,4 +81,5 @@ void bin_to_plist(const char *plist_bin, uint32_t length, plist_t * plist); GNode *find_query_node(plist_t plist, char *key, char *request); GNode *find_node(plist_t plist, plist_type type, void *value); void get_type_and_value(GNode * node, plist_type * type, void *value); + #endif -- cgit v1.1-32-gdbae