xml.h 806 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*
 * internal.h: internal definitions just used by code from the library
 */

#ifndef __VIR_XML_H__
#define __VIR_XML_H__

#include "libvirt.h"

#ifdef __cplusplus
extern "C" {
#endif

D
Daniel Veillard 已提交
14 15 16 17 18
/**
 * virBuffer:
 *
 * A buffer structure.
 */
19 20 21 22 23 24 25
typedef struct _virBuffer virBuffer;
typedef virBuffer *virBufferPtr;
struct _virBuffer {
    char *content;          /* The buffer content UTF8 */
    unsigned int use;       /* The buffer size used */
    unsigned int size;      /* The buffer size */
};
26

27 28 29
int virBufferAdd(virBufferPtr buf, const char *str, int len);
int virBufferVSprintf(virBufferPtr buf, const char *format, ...);
char *virDomainParseXMLDesc(const char *xmldesc, char **name);
30 31 32

#ifdef __cplusplus
}
33 34
#endif                          /* __cplusplus */
#endif                          /* __VIR_XML_H__ */