2006-02-16 22:50:52 +00:00
|
|
|
/*
|
|
|
|
* internal.h: internal definitions just used by code from the library
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __VIR_XML_H__
|
|
|
|
#define __VIR_XML_H__
|
|
|
|
|
2006-06-26 15:02:18 +00:00
|
|
|
#include "libvirt/libvirt.h"
|
2006-02-16 22:50:52 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2006-02-20 17:22:16 +00:00
|
|
|
/**
|
|
|
|
* virBuffer:
|
|
|
|
*
|
|
|
|
* A buffer structure.
|
|
|
|
*/
|
2006-04-28 18:29:26 +00:00
|
|
|
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 */
|
|
|
|
};
|
2006-03-15 12:13:25 +00:00
|
|
|
|
2006-05-10 12:15:49 +00:00
|
|
|
virBufferPtr virBufferNew(unsigned int size);
|
2006-05-09 15:35:46 +00:00
|
|
|
void virBufferFree(virBufferPtr buf);
|
2006-04-28 18:29:26 +00:00
|
|
|
int virBufferAdd(virBufferPtr buf, const char *str, int len);
|
|
|
|
int virBufferVSprintf(virBufferPtr buf, const char *format, ...);
|
2006-05-10 12:15:49 +00:00
|
|
|
int virBufferStrcat(virBufferPtr buf, ...);
|
2006-04-28 18:29:26 +00:00
|
|
|
char *virDomainParseXMLDesc(const char *xmldesc, char **name);
|
2006-08-16 16:33:55 +00:00
|
|
|
unsigned char *virParseUUID(char **ptr, const char *uuid);
|
2006-02-16 22:50:52 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2006-03-15 12:13:25 +00:00
|
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* __VIR_XML_H__ */
|