}
static int
-qemuMonitorCommandWithHandler(qemuMonitorPtr mon,
- const char *cmd,
- qemuMonitorPasswordHandler passwordHandler,
- void *passwordOpaque,
- int scm_fd,
- char **reply) {
+qemuMonitorTextCommandWithHandler(qemuMonitorPtr mon,
+ const char *cmd,
+ qemuMonitorPasswordHandler passwordHandler,
+ void *passwordOpaque,
+ int scm_fd,
+ char **reply)
+{
int ret;
qemuMonitorMessage msg;
int scm_fd,
char **reply)
{
- return qemuMonitorCommandWithHandler(mon, cmd, NULL, NULL, scm_fd, reply);
+ return qemuMonitorTextCommandWithHandler(mon, cmd, NULL, NULL,
+ scm_fd, reply);
}
virConnectPtr conn) {
char *reply;
- if (qemuMonitorCommandWithHandler(mon, "cont",
- qemuMonitorSendDiskPassphrase,
- conn,
- -1, &reply) < 0)
+ if (qemuMonitorTextCommandWithHandler(mon, "cont",
+ qemuMonitorSendDiskPassphrase,
+ conn,
+ -1, &reply) < 0)
return -1;
VIR_FREE(reply);
{
char *info = NULL;
- if (qemuMonitorCommandWithHandler(mon, "change vnc password",
- qemuMonitorSendVNCPassphrase,
- (char *)password,
- -1, &info) < 0) {
+ if (qemuMonitorTextCommandWithHandler(mon, "change vnc password",
+ qemuMonitorSendVNCPassphrase,
+ (char *)password,
+ -1, &info) < 0) {
qemuReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("setting VNC password failed"));
return -1;