提交 df44e3ee 编写于 作者: P Peter Krempa

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.
上级 6692ba73
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册