_("Unable to unescape command"));
goto cleanup;
}
- ret = qemuMonitorJSONHumanCommandWithFd(mon, json_cmd, -1, reply);
+ ret = qemuMonitorJSONHumanCommand(mon, json_cmd, reply);
cleanup:
VIR_FREE(json_cmd);
int
-qemuMonitorJSONHumanCommandWithFd(qemuMonitorPtr mon,
- const char *cmd_str,
- int scm_fd,
- char **reply_str)
+qemuMonitorJSONHumanCommand(qemuMonitorPtr mon,
+ const char *cmd_str,
+ char **reply_str)
{
virJSONValuePtr cmd = NULL;
virJSONValuePtr reply = NULL;
"s:command-line", cmd_str,
NULL);
- if (!cmd || qemuMonitorJSONCommandWithFd(mon, cmd, scm_fd, &reply) < 0)
+ if (!cmd || qemuMonitorJSONCommand(mon, cmd, &reply) < 0)
goto cleanup;
if (qemuMonitorJSONHasError(reply, "CommandNotFound")) {
int ret = -1;
if (hmp) {
- return qemuMonitorJSONHumanCommandWithFd(mon, cmd_str, -1, reply_str);
+ return qemuMonitorJSONHumanCommand(mon, cmd_str, reply_str);
} else {
if (!(cmd = virJSONValueFromString(cmd_str)))
goto cleanup;
size_t len,
qemuMonitorMessagePtr msg);
-int qemuMonitorJSONHumanCommandWithFd(qemuMonitorPtr mon,
- const char *cmd,
- int scm_fd,
- char **reply);
+int qemuMonitorJSONHumanCommand(qemuMonitorPtr mon,
+ const char *cmd,
+ char **reply);
int qemuMonitorJSONSetCapabilities(qemuMonitorPtr mon);