int monitor_read_password(Monitor *mon, ReadLineFunc *readline_func,

                          void *opaque)

{

    if (monitor_ctrl_mode(mon)) {

        qerror_report(QERR_MISSING_PARAMETER, "password");

        return -EINVAL;

    } else if (mon->rs) {

        readline_start(mon->rs, "Password: ", 1, readline_func, opaque);

        /* prompt is printed on return from the command handler */

        return 0;

    } else {

        monitor_printf(mon, "terminal does not support password prompting\n");

        return -ENOTTY;

    }

}

int monitor_read_password(Monitor *mon, ReadLineFunc *readline_func,

                          void *opaque)

{

    if (monitor_ctrl_mode(mon)) {

        qerror_report(QERR_MISSING_PARAMETER, "password");

        return -EINVAL;

    } else if (mon->rs) {

        readline_start(mon->rs, "Password: ", 1, readline_func, opaque);

        

        return 0;

    } else {

        monitor_printf(mon, "terminal does not support password prompting\n");

        return -ENOTTY;

    }

}

int FUNC_0(Monitor *VAR_0, ReadLineFunc *VAR_1,

                          void *VAR_2)

{

    if (monitor_ctrl_mode(VAR_0)) {

        qerror_report(QERR_MISSING_PARAMETER, "password");

        return -EINVAL;

    } else if (VAR_0->rs) {

        readline_start(VAR_0->rs, "Password: ", 1, VAR_1, VAR_2);

        

        return 0;

    } else {

        monitor_printf(VAR_0, "terminal does not support password prompting\n");

        return -ENOTTY;

    }

}

int FUNC_0(Monitor *VAR_0, ReadLineFunc *VAR_1,
void *VAR_2)
{ if (monitor_ctrl_mode(VAR_0)) { qerror_report(QERR_MISSING_PARAMETER, "password"); return -EINVAL; } else if (VAR_0->rs) { readline_start(VAR_0->rs, "Password: ", 1, VAR_1, VAR_2); return 0; } else { monitor_printf(VAR_0, "terminal does not support password prompting\n"); return -ENOTTY; } }