goto cleanup;
/* snaphot name is ignored, it will be set to auto generated by sdk uuid */
- if (prlsdkCreateSnapshot(dom, def->description) < 0)
+ if (prlsdkCreateSnapshot(dom, def->common.description) < 0)
goto cleanup;
if (!(snapshots = prlsdkLoadSnapshots(dom)))
ctxt->node = nodes[i];
- def->name = virXPathString("string(./@guid)", ctxt);
- if (!def->name) {
+ def->common.name = virXPathString("string(./@guid)", ctxt);
+ if (!def->common.name) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("missing 'guid' attribute"));
goto cleanup;
}
- def->parent = virXPathString("string(../@guid)", ctxt);
+ def->common.parent = virXPathString("string(../@guid)", ctxt);
xmlstr = virXPathString("string(./DateTime)", ctxt);
if (!xmlstr) {
_("missing 'DateTime' element"));
goto cleanup;
}
- if ((def->creationTime = prlsdkParseDateTime(xmlstr)) < 0)
+ if ((def->common.creationTime = prlsdkParseDateTime(xmlstr)) < 0)
goto cleanup;
VIR_FREE(xmlstr);
- def->description = virXPathString("string(./Description)", ctxt);
+ def->common.description = virXPathString("string(./Description)", ctxt);
def->memory = VIR_DOMAIN_SNAPSHOT_LOCATION_NONE;
xmlstr = virXPathString("string(./@state)", ctxt);