void qmp_blockdev_snapshot(const char *node, const char *overlay,

                           Error **errp)

{

    BlockdevSnapshot snapshot_data = {

        .node = (char *) node,

        .overlay = (char *) overlay

    };

    TransactionAction action = {

        .type = TRANSACTION_ACTION_KIND_BLOCKDEV_SNAPSHOT,

        .u.blockdev_snapshot = &snapshot_data,

    };

    blockdev_do_action(&action, errp);

}

void qmp_blockdev_snapshot(const char *node, const char *overlay,

                           Error **errp)

{

    BlockdevSnapshot snapshot_data = {

        .node = (char *) node,

        .overlay = (char *) overlay

    };

    TransactionAction action = {

        .type = TRANSACTION_ACTION_KIND_BLOCKDEV_SNAPSHOT,

        .u.blockdev_snapshot = &snapshot_data,

    };

    blockdev_do_action(&action, errp);

}

void FUNC_0(const char *VAR_0, const char *VAR_1,

                           Error **VAR_2)

{

    BlockdevSnapshot snapshot_data = {

        .VAR_0 = (char *) VAR_0,

        .VAR_1 = (char *) VAR_1

    };

    TransactionAction action = {

        .type = TRANSACTION_ACTION_KIND_BLOCKDEV_SNAPSHOT,

        .u.blockdev_snapshot = &snapshot_data,

    };

    blockdev_do_action(&action, VAR_2);

}

void FUNC_0(const char *VAR_0, const char *VAR_1,
Error **VAR_2)
{ BlockdevSnapshot snapshot_data = { .VAR_0 = (char *) VAR_0,
.VAR_1 = (char *) VAR_1
}; TransactionAction action = { .type = TRANSACTION_ACTION_KIND_BLOCKDEV_SNAPSHOT,
.u.blockdev_snapshot = &snapshot_data,
}; blockdev_do_action(&action, VAR_2); }