/** * virDomainCapsFeatureGICFormat: * @buf: target buffer * @gic: GIC features * * Format GIC features for inclusion in the domcapabilities XML. * * The resulting XML will look like * * <gic supported='yes'> * <enum name='version> * <value>2</value> * <value>3</value> * </enum> * </gic> */ static void virDomainCapsFeatureGICFormat(virBufferPtr buf, virDomainCapsFeatureGICPtr const gic) { FORMAT_PROLOGUE(gic); ENUM_PROCESS(gic, version, virGICVersionTypeToString); FORMAT_EPILOGUE(gic); }
static void virDomainCapsDeviceVideoFormat(virBufferPtr buf, virDomainCapsDeviceVideoPtr const video) { FORMAT_PROLOGUE(video); ENUM_PROCESS(video, modelType, virDomainVideoTypeToString); FORMAT_EPILOGUE(video); }
static void virDomainCapsDeviceGraphicsFormat(virBufferPtr buf, virDomainCapsDeviceGraphicsPtr const graphics) { FORMAT_PROLOGUE(graphics); ENUM_PROCESS(graphics, type, virDomainGraphicsTypeToString); FORMAT_EPILOGUE(graphics); }
static void virDomainCapsDeviceDiskFormat(virBufferPtr buf, virDomainCapsDeviceDiskPtr const disk) { FORMAT_PROLOGUE(disk); ENUM_PROCESS(disk, diskDevice, virDomainDiskDeviceTypeToString); ENUM_PROCESS(disk, bus, virDomainDiskBusTypeToString); FORMAT_EPILOGUE(disk); }
static void virDomainCapsOSFormat(virBufferPtr buf, virDomainCapsOSPtr os) { virDomainCapsLoaderPtr loader = &os->loader; FORMAT_PROLOGUE(os); virDomainCapsLoaderFormat(buf, loader); FORMAT_EPILOGUE(os); }
static void virDomainCapsLoaderFormat(virBufferPtr buf, virDomainCapsLoaderPtr loader) { FORMAT_PROLOGUE(loader); virDomainCapsStringValuesFormat(buf, &loader->values); ENUM_PROCESS(loader, type, virDomainLoaderTypeToString); ENUM_PROCESS(loader, readonly, virTristateBoolTypeToString); FORMAT_EPILOGUE(loader); }
static void virDomainCapsDeviceHostdevFormat(virBufferPtr buf, virDomainCapsDeviceHostdevPtr const hostdev) { FORMAT_PROLOGUE(hostdev); ENUM_PROCESS(hostdev, mode, virDomainHostdevModeTypeToString); ENUM_PROCESS(hostdev, startupPolicy, virDomainStartupPolicyTypeToString); ENUM_PROCESS(hostdev, subsysType, virDomainHostdevSubsysTypeToString); ENUM_PROCESS(hostdev, capsType, virDomainHostdevCapsTypeToString); ENUM_PROCESS(hostdev, pciBackend, virDomainHostdevSubsysPCIBackendTypeToString); FORMAT_EPILOGUE(hostdev); }
static void virDomainCapsOSFormat(virBufferPtr buf, virDomainCapsOSPtr os) { virDomainCapsLoaderPtr loader = &os->loader; FORMAT_PROLOGUE(os); ENUM_PROCESS(os, firmware, virDomainOsDefFirmwareTypeToString); virDomainCapsLoaderFormat(buf, loader); FORMAT_EPILOGUE(os); }