From df44e3ee80871012891dccbae322edf4ff08248a Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 29 Oct 2014 13:03:57 +0100 Subject: [PATCH] conf: Annotate source enums for character device struct members Add a comment to track which values may be present in certain members of a struct _virDomainChrDef. --- src/conf/domain_conf.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 530a3ca81e..574d3eaf52 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -1100,10 +1100,13 @@ struct _virDomainChrSourceDef { /* A complete character device, both host and domain views. */ struct _virDomainChrDef { - int deviceType; + int deviceType; /* enum virDomainChrDeviceType */ bool targetTypeAttr; - int targetType; + int targetType; /* enum virDomainChrConsoleTargetType || + enum virDomainChrChannelTargetType || + enum virDomainChrSerialTargetType according to deviceType */ + union { int port; /* parallel, serial, console */ virSocketAddrPtr addr; /* guestfwd */ -- 2.47.2