}
+int
+qemuMonitorSetUSBDiskAttached(qemuMonitor *mon,
+ const char *alias)
+{
+ QEMU_CHECK_MONITOR(mon);
+
+ VIR_DEBUG("alias=%s", alias);
+
+ return qemuMonitorJSONSetUSBDiskAttached(mon, alias);
+}
+
+
/**
* qemuMonitorGetMigrationParams:
* @mon: Pointer to the monitor object.
int qemuMonitorSetDBusVMStateIdList(qemuMonitor *mon,
GSList *list);
+int qemuMonitorSetUSBDiskAttached(qemuMonitor *mon,
+ const char *alias);
+
int qemuMonitorGetMigrationParams(qemuMonitor *mon,
virJSONValue **params);
int qemuMonitorSetMigrationParams(qemuMonitor *mon,
}
+/**
+ * qemuMonitorJSONSetUSBDiskAttached:
+ * @mon: monitor object
+ * @alias: alias of usb disk to set
+ *
+ * Sets the 'attached' property of @alias to true.
+ */
+int
+qemuMonitorJSONSetUSBDiskAttached(qemuMonitor *mon,
+ const char *alias)
+{
+ qemuMonitorJSONObjectProperty prop = {
+ .type = QEMU_MONITOR_OBJECT_PROPERTY_BOOLEAN,
+ .val.b = true,
+ };
+
+ return qemuMonitorJSONSetObjectProperty(mon, alias, "attached", &prop);
+}
+
+
/* qemuMonitorJSONQueryNamedBlockNodes:
* @mon: Monitor pointer
*
const char *idstr)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
+int
+qemuMonitorJSONSetUSBDiskAttached(qemuMonitor *mon,
+ const char *alias)
+ ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
+
int
qemuMonitorJSONGetCPUMigratable(qemuMonitor *mon,
const char *cpuQOMPath,