static void bdrv_password_cb(Monitor *mon, const char *password, void *opaque)

{

    BlockDriverState *bs = opaque;

    int ret = 0;



    if (bdrv_set_key(bs, password) != 0) {

        monitor_printf(mon, "invalid password\n");

        ret = -EPERM;

    }

    if (mon->password_completion_cb)

        mon->password_completion_cb(mon->password_opaque, ret);



    monitor_read_command(mon, 1);

}

static void bdrv_password_cb(Monitor *mon, const char *password, void *opaque)

{

    BlockDriverState *bs = opaque;

    int ret = 0;



    if (bdrv_set_key(bs, password) != 0) {

        monitor_printf(mon, "invalid password\n");

        ret = -EPERM;

    }

    if (mon->password_completion_cb)

        mon->password_completion_cb(mon->password_opaque, ret);



    monitor_read_command(mon, 1);

}

static void FUNC_0(Monitor *VAR_0, const char *VAR_1, void *VAR_2)

{

    BlockDriverState *bs = VAR_2;

    int VAR_3 = 0;



    if (bdrv_set_key(bs, VAR_1) != 0) {

        monitor_printf(VAR_0, "invalid VAR_1\n");

        VAR_3 = -EPERM;

    }

    if (VAR_0->password_completion_cb)

        VAR_0->password_completion_cb(VAR_0->password_opaque, VAR_3);



    monitor_read_command(VAR_0, 1);

}

static void FUNC_0(Monitor *VAR_0, const char *VAR_1, void *VAR_2)
{ BlockDriverState *bs = VAR_2; int VAR_3 = 0; if (bdrv_set_key(bs, VAR_1) != 0) { monitor_printf(VAR_0, "invalid VAR_1\n"); VAR_3 = -EPERM; } if (VAR_0->password_completion_cb)
VAR_0->password_completion_cb(VAR_0->password_opaque, VAR_3); monitor_read_command(VAR_0, 1); }