From: Peter Krempa Date: Wed, 29 Oct 2014 12:03:57 +0000 (+0100) Subject: conf: Annotate source enums for character device struct members X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=df44e3ee80871012891dccbae322edf4ff08248a;p=libvirt.git 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. --- 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 */