summaryrefslogtreecommitdiffstats
path: root/plist.h
blob: 1f18eb4c98f5faeb78adf9a1f0d466e291d1ad59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* plist.h
 * contains structures and the like for plists
 * written by fxchip
 */

#ifndef PLIST_H
#define PLIST_H

#include <libxml/parser.h>
#include <libxml/tree.h>

xmlNode *add_key_str_dict_element(xmlDocPtr plist, xmlNode *dict, const char *key, const char *value, int depth);
xmlNode *add_child_to_plist(xmlDocPtr plist, const char *name, const char *content, xmlNode *to_node, int depth);
void free_plist(xmlDocPtr plist);
xmlDocPtr new_plist();
void free_dictionary(char **dictionary);
#endif