diff options
Diffstat (limited to 'src/plist.h')
| -rw-r--r-- | src/plist.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/plist.h b/src/plist.h index e3f3f59..ff4bdbf 100644 --- a/src/plist.h +++ b/src/plist.h | |||
| @@ -30,8 +30,6 @@ | |||
| 30 | #include <unistd.h> | 30 | #include <unistd.h> |
| 31 | #include <glib.h> | 31 | #include <glib.h> |
| 32 | 32 | ||
| 33 | char *format_string(const char *buf, int cols, int depth); | ||
| 34 | |||
| 35 | 33 | ||
| 36 | typedef enum { | 34 | typedef enum { |
| 37 | PLIST_BOOLEAN, | 35 | PLIST_BOOLEAN, |
| @@ -44,6 +42,7 @@ typedef enum { | |||
| 44 | PLIST_DATE, | 42 | PLIST_DATE, |
| 45 | PLIST_DATA, | 43 | PLIST_DATA, |
| 46 | PLIST_KEY, | 44 | PLIST_KEY, |
| 45 | PLIST_NONE | ||
| 47 | } plist_type; | 46 | } plist_type; |
| 48 | 47 | ||
| 49 | 48 | ||
| @@ -63,13 +62,12 @@ struct plist_data { | |||
| 63 | 62 | ||
| 64 | 63 | ||
| 65 | typedef GNode *plist_t; | 64 | typedef GNode *plist_t; |
| 66 | typedef GNode *dict_t; | ||
| 67 | typedef GNode *array_t; | ||
| 68 | 65 | ||
| 69 | void plist_new_plist(plist_t * plist); | 66 | |
| 70 | void plist_new_dict_in_plist(plist_t plist, dict_t * dict); | 67 | void plist_new_dict(plist_t * plist); |
| 71 | void plist_new_array_in_plist(plist_t plist, int length, plist_type type, void **values, array_t * array); | 68 | void plist_new_array(plist_t * plist); |
| 72 | void plist_add_dict_element(dict_t dict, char *key, plist_type type, void *value); | 69 | void plist_new_dict_in_plist(plist_t plist, plist_t * dict); |
| 70 | void plist_add_dict_element(plist_t dict, char *key, plist_type type, void *value); | ||
| 73 | void plist_free(plist_t plist); | 71 | void plist_free(plist_t plist); |
| 74 | 72 | ||
| 75 | void plist_to_xml(plist_t plist, char **plist_xml, uint32_t * length); | 73 | void plist_to_xml(plist_t plist, char **plist_xml, uint32_t * length); |
| @@ -78,8 +76,8 @@ void plist_to_bin(plist_t plist, char **plist_bin, uint32_t * length); | |||
| 78 | void xml_to_plist(const char *plist_xml, uint32_t length, plist_t * plist); | 76 | void xml_to_plist(const char *plist_xml, uint32_t length, plist_t * plist); |
| 79 | void bin_to_plist(const char *plist_bin, uint32_t length, plist_t * plist); | 77 | void bin_to_plist(const char *plist_bin, uint32_t length, plist_t * plist); |
| 80 | 78 | ||
| 81 | GNode *find_query_node(plist_t plist, char *key, char *request); | 79 | plist_t find_query_node(plist_t plist, char *key, char *request); |
| 82 | GNode *find_node(plist_t plist, plist_type type, void *value); | 80 | plist_t find_node(plist_t plist, plist_type type, void *value); |
| 83 | void get_type_and_value(GNode * node, plist_type * type, void *value); | 81 | void get_type_and_value(plist_t node, plist_type * type, void *value); |
| 84 | 82 | ||
| 85 | #endif | 83 | #endif |
