static void migrate_params_test_apply(MigrateSetParameters *params,

                                      MigrationParameters *dest)

{

    *dest = migrate_get_current()->parameters;



    /* TODO use QAPI_CLONE() instead of duplicating it inline */



    if (params->has_compress_level) {

        dest->compress_level = params->compress_level;

    }



    if (params->has_compress_threads) {

        dest->compress_threads = params->compress_threads;

    }



    if (params->has_decompress_threads) {

        dest->decompress_threads = params->decompress_threads;

    }



    if (params->has_cpu_throttle_initial) {

        dest->cpu_throttle_initial = params->cpu_throttle_initial;

    }



    if (params->has_cpu_throttle_increment) {

        dest->cpu_throttle_increment = params->cpu_throttle_increment;

    }



    if (params->has_tls_creds) {

        dest->tls_creds = g_strdup(params->tls_creds);

    }



    if (params->has_tls_hostname) {

        dest->tls_hostname = g_strdup(params->tls_hostname);

    }



    if (params->has_max_bandwidth) {

        dest->max_bandwidth = params->max_bandwidth;

    }



    if (params->has_downtime_limit) {

        dest->downtime_limit = params->downtime_limit;

    }



    if (params->has_x_checkpoint_delay) {

        dest->x_checkpoint_delay = params->x_checkpoint_delay;

    }



    if (params->has_block_incremental) {

        dest->block_incremental = params->block_incremental;

    }

}

static void migrate_params_test_apply(MigrateSetParameters *params,

                                      MigrationParameters *dest)

{

    *dest = migrate_get_current()->parameters;



    



    if (params->has_compress_level) {

        dest->compress_level = params->compress_level;

    }



    if (params->has_compress_threads) {

        dest->compress_threads = params->compress_threads;

    }



    if (params->has_decompress_threads) {

        dest->decompress_threads = params->decompress_threads;

    }



    if (params->has_cpu_throttle_initial) {

        dest->cpu_throttle_initial = params->cpu_throttle_initial;

    }



    if (params->has_cpu_throttle_increment) {

        dest->cpu_throttle_increment = params->cpu_throttle_increment;

    }



    if (params->has_tls_creds) {

        dest->tls_creds = g_strdup(params->tls_creds);

    }



    if (params->has_tls_hostname) {

        dest->tls_hostname = g_strdup(params->tls_hostname);

    }



    if (params->has_max_bandwidth) {

        dest->max_bandwidth = params->max_bandwidth;

    }



    if (params->has_downtime_limit) {

        dest->downtime_limit = params->downtime_limit;

    }



    if (params->has_x_checkpoint_delay) {

        dest->x_checkpoint_delay = params->x_checkpoint_delay;

    }



    if (params->has_block_incremental) {

        dest->block_incremental = params->block_incremental;

    }

}

static void FUNC_0(MigrateSetParameters *VAR_0,

                                      MigrationParameters *VAR_1)

{

    *VAR_1 = migrate_get_current()->parameters;



    



    if (VAR_0->has_compress_level) {

        VAR_1->compress_level = VAR_0->compress_level;

    }



    if (VAR_0->has_compress_threads) {

        VAR_1->compress_threads = VAR_0->compress_threads;

    }



    if (VAR_0->has_decompress_threads) {

        VAR_1->decompress_threads = VAR_0->decompress_threads;

    }



    if (VAR_0->has_cpu_throttle_initial) {

        VAR_1->cpu_throttle_initial = VAR_0->cpu_throttle_initial;

    }



    if (VAR_0->has_cpu_throttle_increment) {

        VAR_1->cpu_throttle_increment = VAR_0->cpu_throttle_increment;

    }



    if (VAR_0->has_tls_creds) {

        VAR_1->tls_creds = g_strdup(VAR_0->tls_creds);

    }



    if (VAR_0->has_tls_hostname) {

        VAR_1->tls_hostname = g_strdup(VAR_0->tls_hostname);

    }



    if (VAR_0->has_max_bandwidth) {

        VAR_1->max_bandwidth = VAR_0->max_bandwidth;

    }



    if (VAR_0->has_downtime_limit) {

        VAR_1->downtime_limit = VAR_0->downtime_limit;

    }



    if (VAR_0->has_x_checkpoint_delay) {

        VAR_1->x_checkpoint_delay = VAR_0->x_checkpoint_delay;

    }



    if (VAR_0->has_block_incremental) {

        VAR_1->block_incremental = VAR_0->block_incremental;

    }

}

static void FUNC_0(MigrateSetParameters *VAR_0,
MigrationParameters *VAR_1)
{ *VAR_1 = migrate_get_current()->parameters; if (VAR_0->has_compress_level) { VAR_1->compress_level = VAR_0->compress_level; } if (VAR_0->has_compress_threads) { VAR_1->compress_threads = VAR_0->compress_threads; } if (VAR_0->has_decompress_threads) { VAR_1->decompress_threads = VAR_0->decompress_threads; } if (VAR_0->has_cpu_throttle_initial) { VAR_1->cpu_throttle_initial = VAR_0->cpu_throttle_initial; } if (VAR_0->has_cpu_throttle_increment) { VAR_1->cpu_throttle_increment = VAR_0->cpu_throttle_increment; } if (VAR_0->has_tls_creds) { VAR_1->tls_creds = g_strdup(VAR_0->tls_creds); } if (VAR_0->has_tls_hostname) { VAR_1->tls_hostname = g_strdup(VAR_0->tls_hostname); } if (VAR_0->has_max_bandwidth) { VAR_1->max_bandwidth = VAR_0->max_bandwidth; } if (VAR_0->has_downtime_limit) { VAR_1->downtime_limit = VAR_0->downtime_limit; } if (VAR_0->has_x_checkpoint_delay) { VAR_1->x_checkpoint_delay = VAR_0->x_checkpoint_delay; } if (VAR_0->has_block_incremental) { VAR_1->block_incremental = VAR_0->block_incremental; } }