mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-14 09:23:45 -06:00
add missing flags argument
This commit is contained in:
parent
46971d5ed7
commit
d6bd288da2
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
Thu Jan 8 20:47:26 CET 2009 Guido Günther <agx@sigxcpu.org>
|
||||||
|
|
||||||
|
add missing flags argument
|
||||||
|
* src/xend_internal.c (xenDaemonAttachDevice, xenDaemonDetachDevice):
|
||||||
|
Add missing flags argument
|
||||||
|
* src/xm_internal.c (xenXMDomainDefineXML, xenXMDomainAttachDevice,
|
||||||
|
xenXMDomainDetachDevice): Likewise
|
||||||
|
* tests/xmconfigtest.c (testCompareParseXML): Likewise
|
||||||
|
* tests/xml2sexprtest.c (testCompareFiles): Likewise
|
||||||
|
|
||||||
Thu Jan 8 14:41:55 CET 2009 Guido Günther <agx@sigxcpu.org>
|
Thu Jan 8 14:41:55 CET 2009 Guido Günther <agx@sigxcpu.org>
|
||||||
|
|
||||||
pass flags argument to all virDomain*DefParse* functions
|
pass flags argument to all virDomain*DefParse* functions
|
||||||
|
@ -3857,7 +3857,7 @@ xenDaemonAttachDevice(virDomainPtr domain, const char *xml)
|
|||||||
|
|
||||||
if (!(dev = virDomainDeviceDefParse(domain->conn,
|
if (!(dev = virDomainDeviceDefParse(domain->conn,
|
||||||
priv->caps,
|
priv->caps,
|
||||||
def, xml)))
|
def, xml, VIR_DOMAIN_XML_INACTIVE)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
|
||||||
@ -3947,7 +3947,7 @@ xenDaemonDetachDevice(virDomainPtr domain, const char *xml)
|
|||||||
|
|
||||||
if (!(dev = virDomainDeviceDefParse(domain->conn,
|
if (!(dev = virDomainDeviceDefParse(domain->conn,
|
||||||
priv->caps,
|
priv->caps,
|
||||||
def, xml)))
|
def, xml, VIR_DOMAIN_XML_INACTIVE)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (virDomainXMLDevID(domain, dev, class, ref, sizeof(ref)))
|
if (virDomainXMLDevID(domain, dev, class, ref, sizeof(ref)))
|
||||||
|
@ -2285,7 +2285,8 @@ virDomainPtr xenXMDomainDefineXML(virConnectPtr conn, const char *xml) {
|
|||||||
return (NULL);
|
return (NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!(def = virDomainDefParseString(conn, priv->caps, xml)))
|
if (!(def = virDomainDefParseString(conn, priv->caps, xml,
|
||||||
|
VIR_DOMAIN_XML_INACTIVE)))
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
||||||
if (virHashLookup(nameConfigMap, def->name)) {
|
if (virHashLookup(nameConfigMap, def->name)) {
|
||||||
@ -2527,7 +2528,7 @@ xenXMDomainAttachDevice(virDomainPtr domain, const char *xml) {
|
|||||||
if (!(dev = virDomainDeviceDefParse(domain->conn,
|
if (!(dev = virDomainDeviceDefParse(domain->conn,
|
||||||
priv->caps,
|
priv->caps,
|
||||||
entry->def,
|
entry->def,
|
||||||
xml)))
|
xml, VIR_DOMAIN_XML_INACTIVE)))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
switch (dev->type) {
|
switch (dev->type) {
|
||||||
@ -2616,7 +2617,7 @@ xenXMDomainDetachDevice(virDomainPtr domain, const char *xml) {
|
|||||||
if (!(dev = virDomainDeviceDefParse(domain->conn,
|
if (!(dev = virDomainDeviceDefParse(domain->conn,
|
||||||
priv->caps,
|
priv->caps,
|
||||||
entry->def,
|
entry->def,
|
||||||
xml)))
|
xml, VIR_DOMAIN_XML_INACTIVE)))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
switch (dev->type) {
|
switch (dev->type) {
|
||||||
|
@ -70,7 +70,8 @@ static int testCompareParseXML(const char *xmcfg, const char *xml,
|
|||||||
priv.caps = caps;
|
priv.caps = caps;
|
||||||
conn->privateData = &priv;
|
conn->privateData = &priv;
|
||||||
|
|
||||||
if (!(def = virDomainDefParseString(NULL, caps, xmlPtr)))
|
if (!(def = virDomainDefParseString(NULL, caps, xmlPtr,
|
||||||
|
VIR_DOMAIN_XML_INACTIVE)))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
if (!(conf = xenXMDomainConfigFormat(conn, def)))
|
if (!(conf = xenXMDomainConfigFormat(conn, def)))
|
||||||
|
@ -35,7 +35,8 @@ static int testCompareFiles(const char *xml, const char *sexpr,
|
|||||||
if (virtTestLoadFile(sexpr, &sexprPtr, MAX_FILE) < 0)
|
if (virtTestLoadFile(sexpr, &sexprPtr, MAX_FILE) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
if (!(def = virDomainDefParseString(NULL, caps, xmlData)))
|
if (!(def = virDomainDefParseString(NULL, caps, xmlData,
|
||||||
|
VIR_DOMAIN_XML_INACTIVE)))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
if (!(gotsexpr = xenDaemonFormatSxpr(NULL, def, xendConfigVersion)))
|
if (!(gotsexpr = xenDaemonFormatSxpr(NULL, def, xendConfigVersion)))
|
||||||
|
Loading…
Reference in New Issue
Block a user