From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaMa9-0004bH-IH for qemu-devel@nongnu.org; Mon, 19 Nov 2012 03:19:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaMa6-0005Vy-FK for qemu-devel@nongnu.org; Mon, 19 Nov 2012 03:19:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaMa6-0005Vm-7a for qemu-devel@nongnu.org; Mon, 19 Nov 2012 03:19:50 -0500 Message-ID: <50A9EBA0.7090002@redhat.com> Date: Mon, 19 Nov 2012 09:19:44 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1262482193.11614629.1353256165864.JavaMail.root@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] hw/virtio-serial-bus: post_load send_event when vm is running List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: amit shah , Alon Levy , qemu-devel@nongnu.org, alexl@redhat.com Il 18/11/2012 20:17, Blue Swirl ha scritto: >>>> >> > + struct { >>> >> >>> >> Please add a name, for example PostLoad. >> > >> > Why? This is not C++ and the namespace would be global. It's just to >> > have a nice grouping. > Otherwise the structure will be anonymous and those were only added to > C11, not C99. No, the name here is "post_load". Unnamed struct *types* are present all the way to C89 and probably even K&R. Paolo >> > >> > Paolo >> > >>>> >> > + QEMUTimer *timer; >>>> >> > + int nr_active_ports; >>>> >> > + struct { >>>> >> > + VirtIOSerialPort *port; >>>> >> > + uint8_t host_connected; >>>> >> > + } *connected; >>>> >> > + } post_load;