search for: some_xml

Displaying 2 results from an estimated 2 matches for "some_xml".

Did you mean: shome_xml
2010 Oct 01
1
undefining and redefining a Domain
...;domain already defined...\n"); if (virDomainUndefine(dom)) printf("...unable to undefine!!!\n"); else { printf("...undefined."); free(dom); } } dom = virDomainDefineXML(virt, SOME_XML); if (dom != NULL) { const char *name = virDomainGetName(dom); printf("NAME IS NOW: %s\n", name); } else printf("dom is NULL!\n"); When executed the first time, the code correctly defines the domain, and prints: defining do...
2010 Oct 01
0
how to programmatically undefine and redefine a Domain?
...;domain already defined...\n"); if (virDomainUndefine(dom)) printf("...unable to undefine!!!\n"); else { printf("...undefined."); free(dom); } } dom = virDomainDefineXML(virt, SOME_XML); if (dom != NULL) { const char *name = virDomainGetName(dom); printf("NAME IS NOW: %s\n", name); } else printf("dom is NULL!\n"); When executed the first time, the code correctly defines the domain, and prints: defining do...