void qmp_blockdev_snapshot_sync(bool has_device, const char *device,

                                bool has_node_name, const char *node_name,

                                const char *snapshot_file,

                                bool has_snapshot_node_name,

                                const char *snapshot_node_name,

                                bool has_format, const char *format,

                                bool has_mode, NewImageMode mode, Error **errp)

{

    BlockdevSnapshotSync snapshot = {

        .has_device = has_device,

        .device = (char *) device,

        .has_node_name = has_node_name,

        .node_name = (char *) node_name,

        .snapshot_file = (char *) snapshot_file,

        .has_snapshot_node_name = has_snapshot_node_name,

        .snapshot_node_name = (char *) snapshot_node_name,

        .has_format = has_format,

        .format = (char *) format,

        .has_mode = has_mode,

        .mode = mode,

    };

    TransactionAction action = {

        .type = TRANSACTION_ACTION_KIND_BLOCKDEV_SNAPSHOT_SYNC,

        .u.blockdev_snapshot_sync = &snapshot,

    };

    blockdev_do_action(&action, errp);

}

void qmp_blockdev_snapshot_sync(bool has_device, const char *device,

                                bool has_node_name, const char *node_name,

                                const char *snapshot_file,

                                bool has_snapshot_node_name,

                                const char *snapshot_node_name,

                                bool has_format, const char *format,

                                bool has_mode, NewImageMode mode, Error **errp)

{

    BlockdevSnapshotSync snapshot = {

        .has_device = has_device,

        .device = (char *) device,

        .has_node_name = has_node_name,

        .node_name = (char *) node_name,

        .snapshot_file = (char *) snapshot_file,

        .has_snapshot_node_name = has_snapshot_node_name,

        .snapshot_node_name = (char *) snapshot_node_name,

        .has_format = has_format,

        .format = (char *) format,

        .has_mode = has_mode,

        .mode = mode,

    };

    TransactionAction action = {

        .type = TRANSACTION_ACTION_KIND_BLOCKDEV_SNAPSHOT_SYNC,

        .u.blockdev_snapshot_sync = &snapshot,

    };

    blockdev_do_action(&action, errp);

}

void FUNC_0(bool VAR_0, const char *VAR_1,

                                bool VAR_2, const char *VAR_3,

                                const char *VAR_4,

                                bool VAR_5,

                                const char *VAR_6,

                                bool VAR_7, const char *VAR_8,

                                bool VAR_9, NewImageMode VAR_10, Error **VAR_11)

{

    BlockdevSnapshotSync snapshot = {

        .VAR_0 = VAR_0,

        .VAR_1 = (char *) VAR_1,

        .VAR_2 = VAR_2,

        .VAR_3 = (char *) VAR_3,

        .VAR_4 = (char *) VAR_4,

        .VAR_5 = VAR_5,

        .VAR_6 = (char *) VAR_6,

        .VAR_7 = VAR_7,

        .VAR_8 = (char *) VAR_8,

        .VAR_9 = VAR_9,

        .VAR_10 = VAR_10,

    };

    TransactionAction action = {

        .type = TRANSACTION_ACTION_KIND_BLOCKDEV_SNAPSHOT_SYNC,

        .u.blockdev_snapshot_sync = &snapshot,

    };

    blockdev_do_action(&action, VAR_11);

}

void FUNC_0(bool VAR_0, const char *VAR_1,
bool VAR_2, const char *VAR_3,
const char *VAR_4,
bool VAR_5,
const char *VAR_6,
bool VAR_7, const char *VAR_8,
bool VAR_9, NewImageMode VAR_10, Error **VAR_11)
{ BlockdevSnapshotSync snapshot = { .VAR_0 = VAR_0,
.VAR_1 = (char *) VAR_1,
.VAR_2 = VAR_2,
.VAR_3 = (char *) VAR_3,
.VAR_4 = (char *) VAR_4,
.VAR_5 = VAR_5,
.VAR_6 = (char *) VAR_6,
.VAR_7 = VAR_7,
.VAR_8 = (char *) VAR_8,
.VAR_9 = VAR_9,
.VAR_10 = VAR_10,
}; TransactionAction action = { .type = TRANSACTION_ACTION_KIND_BLOCKDEV_SNAPSHOT_SYNC,
.u.blockdev_snapshot_sync = &snapshot,
}; blockdev_do_action(&action, VAR_11); }