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.
This commit is contained in:
Peter Krempa 2014-10-29 13:03:57 +01:00
parent 6692ba731b
commit df44e3ee80
1 changed files with 5 additions and 2 deletions

View File

@ -1100,10 +1100,13 @@ struct _virDomainChrSourceDef {
/* A complete character device, both host and domain views. */ /* A complete character device, both host and domain views. */
struct _virDomainChrDef { struct _virDomainChrDef {
int deviceType; int deviceType; /* enum virDomainChrDeviceType */
bool targetTypeAttr; bool targetTypeAttr;
int targetType; int targetType; /* enum virDomainChrConsoleTargetType ||
enum virDomainChrChannelTargetType ||
enum virDomainChrSerialTargetType according to deviceType */
union { union {
int port; /* parallel, serial, console */ int port; /* parallel, serial, console */
virSocketAddrPtr addr; /* guestfwd */ virSocketAddrPtr addr; /* guestfwd */