From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6gCa-0002OK-6U for qemu-devel@nongnu.org; Wed, 29 Aug 2012 07:12:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6gCS-0001Gk-Ii for qemu-devel@nongnu.org; Wed, 29 Aug 2012 07:12:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6gCS-0001Gg-AR for qemu-devel@nongnu.org; Wed, 29 Aug 2012 07:12:44 -0400 Message-ID: <503DF923.9030009@redhat.com> Date: Wed, 29 Aug 2012 13:12:35 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1346238199-24425-1-git-send-email-xiawenc@linux.vnet.ibm.com> In-Reply-To: <1346238199-24425-1-git-send-email-xiawenc@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 1/5] [RFC] libqblock, API design List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wenchao Xia Cc: kwolf@redhat.com, aliguori@us.ibm.com, stefanha@gmail.com, qemu-devel@nongnu.org, blauwirbel@gmail.com, eblake@redhat.com, afaerber@suse.de 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