mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
Switch to positional struct initializers in vbox driver table
This commit is contained in:
parent
0ca460eada
commit
69d4634635
@ -1,3 +1,8 @@
|
|||||||
|
Wed Jun 3 14:30:52 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/vbox/vbox_tmpl.c: Switch to positional struct initializers
|
||||||
|
instead of named initializes, to match preferred style
|
||||||
|
|
||||||
Wed Jun 3 14:29:52 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
Wed Jun 3 14:29:52 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/lxc_driver.c: Implement capabilities and nodeinfo APIs
|
* src/lxc_driver.c: Implement capabilities and nodeinfo APIs
|
||||||
|
@ -4899,64 +4899,72 @@ cleanup:
|
|||||||
virDriver NAME(Driver) = {
|
virDriver NAME(Driver) = {
|
||||||
VIR_DRV_VBOX,
|
VIR_DRV_VBOX,
|
||||||
"VBOX",
|
"VBOX",
|
||||||
.open = vboxOpen,
|
vboxOpen, /* open */
|
||||||
.close = vboxClose,
|
vboxClose, /* close */
|
||||||
.supports_feature = NULL,
|
NULL, /* supports_feature */
|
||||||
.type = NULL,
|
NULL, /* type */
|
||||||
.version = vboxGetVersion,
|
vboxGetVersion, /* version */
|
||||||
.getHostname = vboxGetHostname,
|
vboxGetHostname, /* getHostname */
|
||||||
.getMaxVcpus = vboxGetMaxVcpus,
|
vboxGetMaxVcpus, /* getMaxVcpus */
|
||||||
.nodeGetInfo = nodeGetInfo,
|
nodeGetInfo, /* nodeGetInfo */
|
||||||
.getCapabilities = vboxGetCapabilities,
|
vboxGetCapabilities, /* getCapabilities */
|
||||||
.listDomains = vboxListDomains,
|
vboxListDomains, /* listDomains */
|
||||||
.numOfDomains = vboxNumOfDomains,
|
vboxNumOfDomains, /* numOfDomains */
|
||||||
.domainCreateXML = vboxDomainCreateXML,
|
vboxDomainCreateXML, /* domainCreateXML */
|
||||||
.domainLookupByID = vboxDomainLookupByID,
|
vboxDomainLookupByID, /* domainLookupByID */
|
||||||
.domainLookupByUUID = vboxDomainLookupByUUID,
|
vboxDomainLookupByUUID, /* domainLookupByUUID */
|
||||||
.domainLookupByName = vboxDomainLookupByName,
|
vboxDomainLookupByName, /* domainLookupByName */
|
||||||
.domainSuspend = vboxDomainSuspend,
|
vboxDomainSuspend, /* domainSuspend */
|
||||||
.domainResume = vboxDomainResume,
|
vboxDomainResume, /* domainResume */
|
||||||
.domainShutdown = vboxDomainShutdown,
|
vboxDomainShutdown, /* domainShutdown */
|
||||||
.domainReboot = vboxDomainReboot,
|
vboxDomainReboot, /* domainReboot */
|
||||||
.domainDestroy = vboxDomainDestroy,
|
vboxDomainDestroy, /* domainDestroy */
|
||||||
.domainGetOSType = vboxDomainGetOSType,
|
vboxDomainGetOSType, /* domainGetOSType */
|
||||||
.domainGetMaxMemory = NULL,
|
NULL, /* domainGetMaxMemory */
|
||||||
.domainSetMaxMemory = NULL,
|
NULL, /* domainSetMaxMemory */
|
||||||
.domainSetMemory = vboxDomainSetMemory,
|
vboxDomainSetMemory, /* domainSetMemory */
|
||||||
.domainGetInfo = vboxDomainGetInfo,
|
vboxDomainGetInfo, /* domainGetInfo */
|
||||||
.domainSave = vboxDomainSave,
|
vboxDomainSave, /* domainSave */
|
||||||
.domainRestore = NULL,
|
NULL, /* domainRestore */
|
||||||
.domainCoreDump = NULL,
|
NULL, /* domainCoreDump */
|
||||||
.domainSetVcpus = NULL,
|
NULL, /* domainSetVcpus */
|
||||||
.domainPinVcpu = NULL,
|
NULL, /* domainPinVcpu */
|
||||||
.domainGetVcpus = NULL,
|
NULL, /* domainGetVcpus */
|
||||||
.domainGetMaxVcpus = NULL,
|
NULL, /* domainGetMaxVcpus */
|
||||||
.domainDumpXML = vboxDomainDumpXML,
|
NULL, /* domainGetSecurityLabel */
|
||||||
.listDefinedDomains = vboxListDefinedDomains,
|
NULL, /* nodeGetSecurityModel */
|
||||||
.numOfDefinedDomains = vboxNumOfDefinedDomains,
|
vboxDomainDumpXML, /* domainDumpXML */
|
||||||
.domainCreate = vboxDomainCreate,
|
NULL, /* domainXmlFromNative */
|
||||||
.domainDefineXML = vboxDomainDefineXML,
|
NULL, /* domainXmlToNative */
|
||||||
.domainUndefine = vboxDomainUndefine,
|
vboxListDefinedDomains, /* listDefinedDomains */
|
||||||
.domainAttachDevice = vboxDomainAttachDevice,
|
vboxNumOfDefinedDomains, /* numOfDefinedDomains */
|
||||||
.domainDetachDevice = vboxDomainDetachDevice,
|
vboxDomainCreate, /* domainCreate */
|
||||||
.domainGetAutostart = NULL,
|
vboxDomainDefineXML, /* domainDefineXML */
|
||||||
.domainSetAutostart = NULL,
|
vboxDomainUndefine, /* domainUndefine */
|
||||||
.domainGetSchedulerType = NULL,
|
vboxDomainAttachDevice, /* domainAttachDevice */
|
||||||
.domainGetSchedulerParameters = NULL,
|
vboxDomainDetachDevice, /* domainDetachDevice */
|
||||||
.domainSetSchedulerParameters = NULL,
|
NULL, /* domainGetAutostart */
|
||||||
.domainMigratePrepare = NULL,
|
NULL, /* domainSetAutostart */
|
||||||
.domainMigratePerform = NULL,
|
NULL, /* domainGetSchedulerType */
|
||||||
.domainMigrateFinish = NULL,
|
NULL, /* domainGetSchedulerParameters */
|
||||||
.domainBlockStats = NULL,
|
NULL, /* domainSetSchedulerParameters */
|
||||||
.domainInterfaceStats = NULL,
|
NULL, /* domainMigratePrepare */
|
||||||
.domainBlockPeek = NULL,
|
NULL, /* domainMigratePerform */
|
||||||
.domainMemoryPeek = NULL,
|
NULL, /* domainMigrateFinish */
|
||||||
.nodeGetCellsFreeMemory = NULL,
|
NULL, /* domainBlockStats */
|
||||||
.getFreeMemory = NULL,
|
NULL, /* domainInterfaceStats */
|
||||||
.domainEventRegister = NULL,
|
NULL, /* domainBlockPeek */
|
||||||
.domainEventDeregister = NULL,
|
NULL, /* domainMemoryPeek */
|
||||||
.domainMigratePrepare2 = NULL,
|
NULL, /* nodeGetCellsFreeMemory */
|
||||||
.domainMigrateFinish2 = NULL,
|
NULL, /* getFreeMemory */
|
||||||
|
NULL, /* domainEventRegister */
|
||||||
|
NULL, /* domainEventDeregister */
|
||||||
|
NULL, /* domainMigratePrepare2 */
|
||||||
|
NULL, /* domainMigrateFinish2 */
|
||||||
|
NULL, /* nodeDeviceDettach */
|
||||||
|
NULL, /* nodeDeviceReAttach */
|
||||||
|
NULL, /* nodeDeviceReset */
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
virNetworkDriver NAME(NetworkDriver) = {
|
virNetworkDriver NAME(NetworkDriver) = {
|
||||||
|
Loading…
Reference in New Issue
Block a user