mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 07:42:56 +00:00
Fix --with-xen-proxy related compile error
Move virDomainChrTargetTypeToString out of the #ifndef PROXY block, because it's used outside of it.
This commit is contained in:
parent
56b408231a
commit
6bd5a7c200
@ -2441,26 +2441,6 @@ out:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *
|
|
||||||
virDomainChrTargetTypeToString(int deviceType,
|
|
||||||
int targetType)
|
|
||||||
{
|
|
||||||
const char *type = NULL;
|
|
||||||
|
|
||||||
switch (deviceType) {
|
|
||||||
case VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL:
|
|
||||||
type = virDomainChrChannelTargetTypeToString(targetType);
|
|
||||||
break;
|
|
||||||
case VIR_DOMAIN_CHR_DEVICE_TYPE_CONSOLE:
|
|
||||||
type = virDomainChrConsoleTargetTypeToString(targetType);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virDomainChrDefParseTargetXML(virCapsPtr caps,
|
virDomainChrDefParseTargetXML(virCapsPtr caps,
|
||||||
virDomainChrDefPtr def,
|
virDomainChrDefPtr def,
|
||||||
@ -3952,6 +3932,26 @@ virDomainDeviceDefPtr virDomainDeviceDefParse(virCapsPtr caps,
|
|||||||
#endif /* !PROXY */
|
#endif /* !PROXY */
|
||||||
|
|
||||||
|
|
||||||
|
static const char *
|
||||||
|
virDomainChrTargetTypeToString(int deviceType,
|
||||||
|
int targetType)
|
||||||
|
{
|
||||||
|
const char *type = NULL;
|
||||||
|
|
||||||
|
switch (deviceType) {
|
||||||
|
case VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL:
|
||||||
|
type = virDomainChrChannelTargetTypeToString(targetType);
|
||||||
|
break;
|
||||||
|
case VIR_DOMAIN_CHR_DEVICE_TYPE_CONSOLE:
|
||||||
|
type = virDomainChrConsoleTargetTypeToString(targetType);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
virVirtualPortProfileFormat(virBufferPtr buf,
|
virVirtualPortProfileFormat(virBufferPtr buf,
|
||||||
virVirtualPortProfileParamsPtr virtPort,
|
virVirtualPortProfileParamsPtr virtPort,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user