]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Convert all driver struct intializers to C99 style
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 13 May 2011 10:16:31 +0000 (11:16 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 16 May 2011 13:20:43 +0000 (14:20 +0100)
commit879d409e9e618ef2bbe92a8c4ff08017f5bc1793
treef3c9bf223500b92c847df153b07bf53e6bf67b81
parent360df0199ef7fcefab5a3c669e27748c5251a059
Convert all driver struct intializers to C99 style

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
set NULL, eg change

     .listPools          = vboxStorageListPools,
     .numOfDefinedPools  = NULL,
     .listDefinedPools   = NULL,
     .findPoolSources    = NULL,
     .poolLookupByName   = vboxStoragePoolLookupByName,

to

     .listPools          = vboxStorageListPools,
     .poolLookupByName   = vboxStoragePoolLookupByName,
20 files changed:
src/esx/esx_driver.c
src/esx/esx_interface_driver.c
src/esx/esx_network_driver.c
src/esx/esx_nwfilter_driver.c
src/esx/esx_secret_driver.c
src/esx/esx_storage_driver.c
src/interface/netcf_driver.c
src/libxl/libxl_driver.c
src/lxc/lxc_driver.c
src/network/bridge_driver.c
src/openvz/openvz_driver.c
src/phyp/phyp_driver.c
src/qemu/qemu_driver.c
src/remote/remote_driver.c
src/test/test_driver.c
src/uml/uml_driver.c
src/vbox/vbox_tmpl.c
src/vmware/vmware_driver.c
src/xen/xen_driver.c
src/xenapi/xenapi_driver.c