[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 1/5] [RFC] libqblock, API design
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v3 1/5] [RFC] libqblock, API design |
Date: |
Wed, 29 Aug 2012 13:12:35 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 |
Il 29/08/2012 13:03, Wenchao Xia ha scritto:
> +struct QBlockOption_prot_file {
> + char *filename;
> +};
> +
> +union QBlockOption_prot {
> + struct QBlockOption_prot_file o_file;
> +};
> +
> +/**
> + * struct QBlockOptionLoc: contains information about how to find the image
> + *
> + * @prot_type: protocol type, now only support FILE.
> + * @prot_op: protocol related options.
> + */
> +struct QBlockOptionLoc {
> + enum QBlockProtocol prot_type;
> + union QBlockOption_prot prot_op;
> + uint8_t reserved[512];
The padding must be part of the union, not the struct.
Paolo