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

test: Annotate few fields of testDriver structure

Some of the fields are either immutable or self locking, so make a note
of that for future reference.
上级 64eaac81
......@@ -96,11 +96,7 @@ struct _testDriver {
virMutex lock;
int nextDomID;
virCapsPtr caps;
virDomainXMLOptionPtr xmlopt;
virNodeInfo nodeInfo;
virDomainObjListPtr domains;
virNetworkObjListPtr networks;
virInterfaceObjList ifaces;
bool transaction_running;
virInterfaceObjList backupIfaces;
......@@ -111,6 +107,16 @@ struct _testDriver {
size_t numAuths;
testAuthPtr auths;
/* immutable pointer, immutable object after being initialized with
* testBuildCapabilities */
virCapsPtr caps;
/* immutable pointer, immutable object */
virDomainXMLOptionPtr xmlopt;
/* immutable pointer, self-locking APIs */
virDomainObjListPtr domains;
virNetworkObjListPtr networks;
virObjectEventStatePtr eventState;
};
typedef struct _testDriver testDriver;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册