mirror of https://gitee.com/openkylin/libvirt.git
62 lines
1.5 KiB
C
62 lines
1.5 KiB
C
/*
|
|
* xml.h: internal definitions used for XML parsing routines.
|
|
*/
|
|
|
|
#ifndef __VIR_XML_H__
|
|
#define __VIR_XML_H__
|
|
|
|
#include "libvirt/libvirt.h"
|
|
#include "internal.h"
|
|
#include "buf.h"
|
|
|
|
#include <libxml/parser.h>
|
|
#include <libxml/tree.h>
|
|
#include <libxml/xpath.h>
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int virXPathBoolean (const char *xpath,
|
|
xmlXPathContextPtr ctxt);
|
|
char * virXPathString (const char *xpath,
|
|
xmlXPathContextPtr ctxt);
|
|
int virXPathNumber (const char *xpath,
|
|
xmlXPathContextPtr ctxt,
|
|
double *value);
|
|
int virXPathLong (const char *xpath,
|
|
xmlXPathContextPtr ctxt,
|
|
long *value);
|
|
xmlNodePtr virXPathNode (const char *xpath,
|
|
xmlXPathContextPtr ctxt);
|
|
int virXPathNodeSet (const char *xpath,
|
|
xmlXPathContextPtr ctxt,
|
|
xmlNodePtr **list);
|
|
|
|
int virParseXenCpuTopology(virConnectPtr conn,
|
|
virBufferPtr xml,
|
|
const char *str,
|
|
int maxcpu);
|
|
int virParseCpuSet (virConnectPtr conn,
|
|
const char **str,
|
|
char sep,
|
|
char *cpuset,
|
|
int maxcpu);
|
|
char * virDomainParseXMLDesc(virConnectPtr conn,
|
|
const char *xmldesc,
|
|
char **name,
|
|
int xendConfigVersion);
|
|
char * virParseXMLDevice(virConnectPtr conn,
|
|
const char *xmldesc,
|
|
int hvm,
|
|
int xendConfigVersion);
|
|
int virDomainXMLDevID(virDomainPtr domain,
|
|
const char *xmldesc,
|
|
char *class,
|
|
char *ref,
|
|
int ref_len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
#endif /* __VIR_XML_H__ */
|