mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 21:15:20 +00:00
conf: Export disk source formatter and parser
This code will be reused in the snapshot disk definition parser.
This commit is contained in:
parent
30f7ca67d9
commit
5f86d11e4a
@ -4737,7 +4737,7 @@ cleanup:
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
int
|
||||
virDomainDiskSourceDefParse(xmlNodePtr node,
|
||||
int type,
|
||||
char **source,
|
||||
@ -14378,7 +14378,7 @@ virDomainDiskSourceDefFormatSeclabel(virBufferPtr buf,
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
int
|
||||
virDomainDiskSourceDefFormatInternal(virBufferPtr buf,
|
||||
int type,
|
||||
const char *src,
|
||||
|
@ -2344,6 +2344,18 @@ int virDomainDefFormatInternal(virDomainDefPtr def,
|
||||
unsigned int flags,
|
||||
virBufferPtr buf);
|
||||
|
||||
int virDomainDiskSourceDefFormatInternal(virBufferPtr buf,
|
||||
int type,
|
||||
const char *src,
|
||||
int policy,
|
||||
int protocol,
|
||||
size_t nhosts,
|
||||
virDomainDiskHostDefPtr hosts,
|
||||
size_t nseclabels,
|
||||
virSecurityDeviceLabelDefPtr *seclabels,
|
||||
virDomainDiskSourcePoolDefPtr srcpool,
|
||||
unsigned int flags);
|
||||
|
||||
int virDomainDefCompatibleDevice(virDomainDefPtr def,
|
||||
virDomainDeviceDefPtr dev);
|
||||
|
||||
@ -2378,6 +2390,14 @@ virDomainDiskDefPtr
|
||||
virDomainDiskRemove(virDomainDefPtr def, size_t i);
|
||||
virDomainDiskDefPtr
|
||||
virDomainDiskRemoveByName(virDomainDefPtr def, const char *name);
|
||||
int virDomainDiskSourceDefParse(xmlNodePtr node,
|
||||
int type,
|
||||
char **source,
|
||||
int *proto,
|
||||
size_t *nhosts,
|
||||
virDomainDiskHostDefPtr *hosts,
|
||||
virDomainDiskSourcePoolDefPtr *srcpool);
|
||||
|
||||
bool virDomainHasDiskMirror(virDomainObjPtr vm);
|
||||
|
||||
int virDomainNetFindIdx(virDomainDefPtr def, virDomainNetDefPtr net);
|
||||
|
Loading…
x
Reference in New Issue
Block a user