---
src/phyp/phyp_driver.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c
index 2489063..eea229a 100644
--- a/src/phyp/phyp_driver.c
+++ b/src/phyp/phyp_driver.c
@@ -3497,7 +3497,8 @@ phypDomainGetState(virDomainPtr dom,
}
static int
-phypDomainDestroy(virDomainPtr dom)
+phypDomainDestroyWithFlags(virDomainPtr dom,
+ unsigned int flags)
{
int result = -1;
ConnectionData *connection_data = dom->conn->networkPrivateData;
@@ -3509,6 +3510,8 @@ phypDomainDestroy(virDomainPtr dom)
char *ret = NULL;
virBuffer buf = VIR_BUFFER_INITIALIZER;
+ virCheckFlags(0, -1);
+
virBufferAddLit(&buf, "rmsyscfg");
if (system_type == HMC)
virBufferAsprintf(&buf, " -m %s", managed_system);
@@ -3531,6 +3534,12 @@ cleanup:
}
static int
+phypDomainDestroy(virDomainPtr dom)
+{
+ return phypDomainDestroyWithFlags(dom, 0);
+}
+
+static int
phypBuildLpar(virConnectPtr conn, virDomainDefPtr def)
{
int result = -1;
@@ -3763,6 +3772,7 @@ static virDriver phypDriver = {
.domainShutdown = phypDomainShutdown, /* 0.7.0 */
.domainReboot = phypDomainReboot, /* 0.9.1 */
.domainDestroy = phypDomainDestroy, /* 0.7.3 */
+ .domainDestroyWithFlags = phypDomainDestroyWithFlags, /* 0.9.4 */
.domainGetInfo = phypDomainGetInfo, /* 0.7.0 */
.domainGetState = phypDomainGetState, /* 0.9.2 */
.domainSetVcpus = phypDomainSetCPU, /* 0.7.3 */
--
1.7.5.rc3