2006-02-16 22:50:52 +00:00
|
|
|
/*
|
2007-04-06 12:28:24 +00:00
|
|
|
* xml.h: internal definitions used for XML parsing routines.
|
2006-02-16 22:50:52 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __VIR_XML_H__
|
|
|
|
#define __VIR_XML_H__
|
|
|
|
|
2007-03-16 15:03:21 +00:00
|
|
|
#include "internal.h"
|
2006-02-16 22:50:52 +00:00
|
|
|
|
2007-04-06 12:28:24 +00:00
|
|
|
#include <libxml/parser.h>
|
|
|
|
#include <libxml/tree.h>
|
|
|
|
#include <libxml/xpath.h>
|
2006-02-16 22:50:52 +00:00
|
|
|
|
2008-07-25 14:27:25 +00:00
|
|
|
int virXPathBoolean (virConnectPtr conn,
|
|
|
|
const char *xpath,
|
2008-04-10 16:54:54 +00:00
|
|
|
xmlXPathContextPtr ctxt);
|
2008-07-25 14:27:25 +00:00
|
|
|
char * virXPathString (virConnectPtr conn,
|
|
|
|
const char *xpath,
|
2008-04-10 16:54:54 +00:00
|
|
|
xmlXPathContextPtr ctxt);
|
2008-07-25 14:27:25 +00:00
|
|
|
int virXPathNumber (virConnectPtr conn,
|
|
|
|
const char *xpath,
|
2008-04-10 16:54:54 +00:00
|
|
|
xmlXPathContextPtr ctxt,
|
|
|
|
double *value);
|
2008-07-25 14:27:25 +00:00
|
|
|
int virXPathInt (virConnectPtr conn,
|
|
|
|
const char *xpath,
|
2008-07-11 16:23:36 +00:00
|
|
|
xmlXPathContextPtr ctxt,
|
|
|
|
int *value);
|
2008-07-25 14:27:25 +00:00
|
|
|
int virXPathUInt (virConnectPtr conn,
|
|
|
|
const char *xpath,
|
2008-07-11 16:23:36 +00:00
|
|
|
xmlXPathContextPtr ctxt,
|
|
|
|
unsigned int *value);
|
2008-07-25 14:27:25 +00:00
|
|
|
int virXPathLong (virConnectPtr conn,
|
|
|
|
const char *xpath,
|
2008-04-10 16:54:54 +00:00
|
|
|
xmlXPathContextPtr ctxt,
|
|
|
|
long *value);
|
2008-07-25 14:27:25 +00:00
|
|
|
int virXPathULong (virConnectPtr conn,
|
|
|
|
const char *xpath,
|
2008-07-11 10:48:34 +00:00
|
|
|
xmlXPathContextPtr ctxt,
|
|
|
|
unsigned long *value);
|
2008-07-25 14:27:25 +00:00
|
|
|
xmlNodePtr virXPathNode (virConnectPtr conn,
|
|
|
|
const char *xpath,
|
2008-04-10 16:54:54 +00:00
|
|
|
xmlXPathContextPtr ctxt);
|
2008-07-25 14:27:25 +00:00
|
|
|
int virXPathNodeSet (virConnectPtr conn,
|
|
|
|
const char *xpath,
|
2008-04-10 16:54:54 +00:00
|
|
|
xmlXPathContextPtr ctxt,
|
|
|
|
xmlNodePtr **list);
|
2007-04-06 12:28:24 +00:00
|
|
|
|
2008-07-11 16:23:36 +00:00
|
|
|
char * virXMLPropString(xmlNodePtr node,
|
|
|
|
const char *name);
|
|
|
|
|
2006-03-15 12:13:25 +00:00
|
|
|
#endif /* __VIR_XML_H__ */
|