Re: [PATCH 3/5] qemu: Introduce flags in qemuMigrationCompleted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 05, 2015 at 16:16:00 +0200, Jiri Denemark wrote:
> The function already has two bool parameters and we will need to add a
> new one. Let's switch to flags to make the callers readable.
> 
> Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
> ---
>  src/qemu/qemu_migration.c | 23 +++++++++++++++++------
>  1 file changed, 17 insertions(+), 6 deletions(-)
> 
> diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
> index ff9491c..1672323 100644
> --- a/src/qemu/qemu_migration.c
> +++ b/src/qemu/qemu_migration.c
> @@ -2618,6 +2618,11 @@ qemuMigrationCheckJobStatus(virQEMUDriverPtr driver,
>  }
>  
>  
> +enum qemuMigrationCompletedFlags {
> +    QEMU_MIGRATION_COMPLETED_ABORT_ON_ERROR = (1 << 0),
> +    QEMU_MIGRATION_COMPLETED_CHECK_STORAGE  = (1 << 1),
> +};

I plan to do similar stuff with qemuMigrationIsAllowed and it's
parameters. :)

ACK,

Peter

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]