qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] hw/virtio-serial-bus: post_load send_event when


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] hw/virtio-serial-bus: post_load send_event when vm is running
Date: Mon, 19 Nov 2012 09:19:44 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1

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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]