return ret;
}
+
+
+int
+qemuMonitorMigrateIncoming(qemuMonitorPtr mon,
+ const char *uri)
+{
+ VIR_DEBUG("uri=%s", uri);
+
+ QEMU_CHECK_MONITOR_JSON(mon);
+
+ return qemuMonitorJSONMigrateIncoming(mon, uri);
+}
virHashTablePtr *info)
ATTRIBUTE_NONNULL(2);
+int qemuMonitorMigrateIncoming(qemuMonitorPtr mon,
+ const char *uri);
+
/**
* When running two dd process and using <> redirection, we need a
* shell that will not truncate files. These two strings serve that
VIR_FREE(linkname);
return ret;
}
+
+
+int
+qemuMonitorJSONMigrateIncoming(qemuMonitorPtr mon,
+ const char *uri)
+{
+ int ret = -1;
+ virJSONValuePtr cmd;
+ virJSONValuePtr reply = NULL;
+
+ if (!(cmd = qemuMonitorJSONMakeCommand("migrate-incoming",
+ "s:uri", uri,
+ NULL)))
+ return -1;
+
+ if (qemuMonitorJSONCommand(mon, cmd, &reply) < 0)
+ goto cleanup;
+
+ ret = qemuMonitorJSONCheckError(cmd, reply);
+
+ cleanup:
+ virJSONValueFree(cmd);
+ virJSONValueFree(reply);
+ return ret;
+}
const char *name,
char **path)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
+
+int qemuMonitorJSONMigrateIncoming(qemuMonitorPtr mon,
+ const char *uri)
+ ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
+
#endif /* QEMU_MONITOR_JSON_H */