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__
|
|
|
|
|
2006-06-26 15:02:18 +00:00
|
|
|
#include "libvirt/libvirt.h"
|
2007-03-16 15:03:21 +00:00
|
|
|
#include "internal.h"
|
2007-10-22 20:28:55 +00:00
|
|
|
#include "buf.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
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2007-04-06 12:28:24 +00:00
|
|
|
int virXPathBoolean (const char *xpath,
|
2008-04-10 16:54:54 +00:00
|
|
|
xmlXPathContextPtr ctxt);
|
2007-04-06 12:28:24 +00:00
|
|
|
char * virXPathString (const char *xpath,
|
2008-04-10 16:54:54 +00:00
|
|
|
xmlXPathContextPtr ctxt);
|
2007-04-06 12:28:24 +00:00
|
|
|
int virXPathNumber (const char *xpath,
|
2008-04-10 16:54:54 +00:00
|
|
|
xmlXPathContextPtr ctxt,
|
|
|
|
double *value);
|
2007-04-06 12:28:24 +00:00
|
|
|
int virXPathLong (const char *xpath,
|
2008-04-10 16:54:54 +00:00
|
|
|
xmlXPathContextPtr ctxt,
|
|
|
|
long *value);
|
2007-04-06 12:28:24 +00:00
|
|
|
xmlNodePtr virXPathNode (const char *xpath,
|
2008-04-10 16:54:54 +00:00
|
|
|
xmlXPathContextPtr ctxt);
|
2007-04-06 12:28:24 +00:00
|
|
|
int virXPathNodeSet (const char *xpath,
|
2008-04-10 16:54:54 +00:00
|
|
|
xmlXPathContextPtr ctxt,
|
|
|
|
xmlNodePtr **list);
|
2007-04-06 12:28:24 +00:00
|
|
|
|
2008-05-22 16:27:20 +00:00
|
|
|
#if WITH_XEN || WITH_QEMU
|
2007-10-22 20:28:55 +00:00
|
|
|
int virParseCpuSet (virConnectPtr conn,
|
2008-04-10 16:54:54 +00:00
|
|
|
const char **str,
|
|
|
|
char sep,
|
|
|
|
char *cpuset,
|
|
|
|
int maxcpu);
|
2007-10-31 09:39:13 +00:00
|
|
|
char * virSaveCpuSet (virConnectPtr conn,
|
2008-04-10 16:54:54 +00:00
|
|
|
char *cpuset,
|
|
|
|
int maxcpu);
|
2008-05-22 16:27:20 +00:00
|
|
|
#endif
|
|
|
|
#if WITH_XEN
|
2007-10-31 09:39:13 +00:00
|
|
|
char * virConvertCpuSet(virConnectPtr conn,
|
2008-04-10 16:54:54 +00:00
|
|
|
const char *str,
|
|
|
|
int maxcpu);
|
2008-04-26 14:22:02 +00:00
|
|
|
int virDomainParseXMLOSDescHVMChar(virConnectPtr conn,
|
|
|
|
char *buf,
|
|
|
|
size_t buflen,
|
|
|
|
xmlNodePtr node);
|
2007-10-22 20:28:55 +00:00
|
|
|
char * virDomainParseXMLDesc(virConnectPtr conn,
|
2008-04-10 16:54:54 +00:00
|
|
|
const char *xmldesc,
|
|
|
|
char **name,
|
|
|
|
int xendConfigVersion);
|
2007-10-22 20:28:55 +00:00
|
|
|
char * virParseXMLDevice(virConnectPtr conn,
|
2008-04-10 16:54:54 +00:00
|
|
|
const char *xmldesc,
|
|
|
|
int hvm,
|
|
|
|
int xendConfigVersion);
|
2007-10-22 20:28:55 +00:00
|
|
|
int virDomainXMLDevID(virDomainPtr domain,
|
2008-04-10 16:54:54 +00:00
|
|
|
const char *xmldesc,
|
|
|
|
char *class,
|
|
|
|
char *ref,
|
|
|
|
int ref_len);
|
2008-05-07 14:04:40 +00:00
|
|
|
char * virBuildSoundStringFromXML(virConnectPtr conn,
|
|
|
|
xmlXPathContextPtr ctxt);
|
2007-11-30 22:51:54 +00:00
|
|
|
#endif
|
2006-02-16 22:50:52 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2006-03-15 12:13:25 +00:00
|
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* __VIR_XML_H__ */
|