xml.h 2.4 KB
Newer Older
1
/*
2
 * xml.h: internal definitions used for XML parsing routines.
3 4 5 6 7
 */

#ifndef __VIR_XML_H__
#define __VIR_XML_H__

8
#include "internal.h"
9

10 11 12
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
13

14 15
int		virXPathBoolean	(virConnectPtr conn,
                                 const char *xpath,
16
                                 xmlXPathContextPtr ctxt);
17 18
char *		virXPathString	(virConnectPtr conn,
                                 const char *xpath,
19
                                 xmlXPathContextPtr ctxt);
20 21 22 23
char *          virXPathStringLimit(virConnectPtr conn,
                                    const char *xpath,
                                    size_t maxlen,
                                    xmlXPathContextPtr ctxt);
24 25
int		virXPathNumber	(virConnectPtr conn,
                                 const char *xpath,
26 27
                                 xmlXPathContextPtr ctxt,
                                 double *value);
28 29
int		virXPathLong	(virConnectPtr conn,
                                 const char *xpath,
30 31
                                 xmlXPathContextPtr ctxt,
                                 long *value);
32 33
int		virXPathULong	(virConnectPtr conn,
                                 const char *xpath,
34 35
                                 xmlXPathContextPtr ctxt,
                                 unsigned long *value);
M
Mark McLoughlin 已提交
36 37 38 39
int	        virXPathULongLong(virConnectPtr conn,
                                 const char *xpath,
                                 xmlXPathContextPtr ctxt,
                                 unsigned long long *value);
40 41 42 43 44 45 46 47
int		virXPathLongHex	(virConnectPtr conn,
                                 const char *xpath,
                                 xmlXPathContextPtr ctxt,
                                 long *value);
int		virXPathULongHex(virConnectPtr conn,
                                 const char *xpath,
                                 xmlXPathContextPtr ctxt,
                                 unsigned long *value);
48 49
xmlNodePtr	virXPathNode	(virConnectPtr conn,
                                 const char *xpath,
50
                                 xmlXPathContextPtr ctxt);
51 52
int		virXPathNodeSet	(virConnectPtr conn,
                                 const char *xpath,
53 54
                                 xmlXPathContextPtr ctxt,
                                 xmlNodePtr **list);
55

56 57 58
char *          virXMLPropString(xmlNodePtr node,
                                 const char *name);

59
#endif                          /* __VIR_XML_H__ */