libvirt/src/xml.h
2006-08-16 16:33:55 +00:00

39 lines
1001 B
C

/*
* internal.h: internal definitions just used by code from the library
*/
#ifndef __VIR_XML_H__
#define __VIR_XML_H__
#include "libvirt/libvirt.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* virBuffer:
*
* A buffer structure.
*/
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 */
};
virBufferPtr virBufferNew(unsigned int size);
void virBufferFree(virBufferPtr buf);
int virBufferAdd(virBufferPtr buf, const char *str, int len);
int virBufferVSprintf(virBufferPtr buf, const char *format, ...);
int virBufferStrcat(virBufferPtr buf, ...);
char *virDomainParseXMLDesc(const char *xmldesc, char **name);
unsigned char *virParseUUID(char **ptr, const char *uuid);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __VIR_XML_H__ */