On Tue, 28 Jan 2025 at 11:00, Prasad Pandit <[email protected]> wrote: > > for (int i = 0; i < MIGRATION_CAPABILITY__MAX; i++) { > > if (args->caps[i]) { > > migrate_set_capability(from, > > MigrationCapability_str(args->caps[i]), true); > > migrate_set_capability(to, > > MigrationCapability_str(args->caps[i]), true); > > } > > } > > > > We could also set the number of channels as a default value. The tests > > could overwrite it from the hook if needed. > > * Yes, this seems like a better option, I'll give it a try.
Please see -> https://notebin.de/?317b9fc90a9a910d#dGKqq4r5pyMYU5SXYLFhd8wrzKRCxCcokTkTRBCUK7w @Fabiano: does this look okay? If it is, I'll further remove corresponding boolean fields from MigrateCommon struct etc. Thank you. --- - Prasad
