[libvirt] [PATCH 2/4] Convert all driver struct intializers to C99 style
Eric Blake
eblake at redhat.com
Fri May 13 23:29:59 UTC 2011
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 at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110513/fa63bffc/attachment-0001.sig>
More information about the libvir-list
mailing list