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

Re: [libvirt] [PATCH 2/4] Convert all driver struct intializers to C99 style



On 05/13/2011 07:36 AM, Daniel P. Berrange wrote:
> Change all the driver struct initializers to use the
> C99 style, leaving out unused fields. This will make
> it possible to add new APIs without changing every
> driver. eg change:
> 
>     qemudDomainResume, /* domainResume */
>     qemudDomainShutdown, /* domainShutdown */
>     NULL, /* domainReboot */
>     qemudDomainDestroy, /* domainDestroy */
> 
> to
> 
>     .domainResume = qemudDomainResume,
>     .domainShutdown = qemudDomainShutdown,
>     .domainDestroy = qemudDomainDestroy,
> 
> And get rid of any existing C99 style initializersr which

s/initializersr/initializers/

ACK.

-- 
Eric Blake   eblake redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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