static int
-phypDomainAttachDevice(virDomainPtr domain, const char *xml)
+phypDomainAttachDeviceFlags(virDomainPtr domain,
+ const char *xml,
+ unsigned int flags)
{
int result = -1;
virConnectPtr conn = domain->conn;
virBuffer buf = VIR_BUFFER_INITIALIZER;
char *domain_name = NULL;
+ virCheckFlags(0, -1);
+
if (!(def = virDomainDefNew()))
goto cleanup;
return result;
}
+static int
+phypDomainAttachDevice(virDomainPtr domain, const char *xml)
+{
+ return phypDomainAttachDeviceFlags(domain, xml, 0);
+}
+
static char *
phypStorageVolGetKey(virConnectPtr conn, const char *name)
{
}
static int
-phypDomainShutdown(virDomainPtr dom)
+phypDomainShutdownFlags(virDomainPtr dom, unsigned int flags)
{
int result = -1;
virConnectPtr conn = dom->conn;
char *ret = NULL;
virBuffer buf = VIR_BUFFER_INITIALIZER;
+ virCheckFlags(0, -1);
+
virBufferAddLit(&buf, "chsysstate");
if (system_type == HMC)
virBufferAsprintf(&buf, " -m %s", managed_system);
return result;
}
+static int
+phypDomainShutdown(virDomainPtr dom)
+{
+ return phypDomainShutdownFlags(dom, 0);
+}
+
static int
phypDomainGetInfo(virDomainPtr dom, virDomainInfoPtr info)
{
.domainLookupByName = phypDomainLookupByName, /* 0.7.0 */
.domainResume = phypDomainResume, /* 0.7.0 */
.domainShutdown = phypDomainShutdown, /* 0.7.0 */
+ .domainShutdownFlags = phypDomainShutdownFlags, /* 5.6.0 */
.domainReboot = phypDomainReboot, /* 0.9.1 */
.domainDestroy = phypDomainDestroy, /* 0.7.3 */
.domainDestroyFlags = phypDomainDestroyFlags, /* 0.9.4 */
.connectListDefinedDomains = phypConnectListDefinedDomains, /* 0.7.0 */
.connectNumOfDefinedDomains = phypConnectNumOfDefinedDomains, /* 0.7.0 */
.domainAttachDevice = phypDomainAttachDevice, /* 0.8.2 */
+ .domainAttachDeviceFlags = phypDomainAttachDeviceFlags, /* 5.6.0 */
.connectIsEncrypted = phypConnectIsEncrypted, /* 0.7.3 */
.connectIsSecure = phypConnectIsSecure, /* 0.7.3 */
.domainIsUpdated = phypDomainIsUpdated, /* 0.8.6 */