}
+static void
+virDomainCapsDeviceConsoleFormat(virBuffer *buf,
+ const virDomainCapsDeviceConsole *console)
+{
+ FORMAT_PROLOGUE(console);
+
+ ENUM_PROCESS(console, type, virDomainChrTypeToString);
+
+ FORMAT_EPILOGUE(console);
+}
+
/**
* virDomainCapsFeatureGICFormat:
* @buf: target buffer
virDomainCapsDeviceCryptoFormat(&buf, &caps->crypto);
virDomainCapsDeviceNetFormat(&buf, &caps->net);
virDomainCapsDevicePanicFormat(&buf, &caps->panic);
+ virDomainCapsDeviceConsoleFormat(&buf, &caps->console);
virBufferAdjustIndent(&buf, -2);
virBufferAddLit(&buf, "</devices>\n");
virDomainCapsEnum model; /* virDomainPanicModel */
};
+typedef struct _virDomainCapsDeviceConsole virDomainCapsDeviceConsole;
+struct _virDomainCapsDeviceConsole {
+ virTristateBool supported;
+ virDomainCapsEnum type; /* virDomainChrType */
+};
+
+
typedef enum {
VIR_DOMAIN_CAPS_FEATURE_IOTHREADS = 0,
VIR_DOMAIN_CAPS_FEATURE_VMCOREINFO,
virDomainCapsDeviceCrypto crypto;
virDomainCapsDeviceNet net;
virDomainCapsDevicePanic panic;
+ virDomainCapsDeviceConsole console;
/* add new domain devices here */
virDomainCapsFeatureGIC gic;
<optional>
<ref name="panic"/>
</optional>
+ <optional>
+ <ref name="console"/>
+ </optional>
</element>
</define>
</element>
</define>
+ <define name="console">
+ <element name="console">
+ <ref name="supported"/>
+ <ref name="enum"/>
+ </element>
+ </define>
+
<define name="interface">
<element name="interface">
<ref name="supported"/>