提交 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 { ...@@ -96,11 +96,7 @@ struct _testDriver {
virMutex lock; virMutex lock;
int nextDomID; int nextDomID;
virCapsPtr caps;
virDomainXMLOptionPtr xmlopt;
virNodeInfo nodeInfo; virNodeInfo nodeInfo;
virDomainObjListPtr domains;
virNetworkObjListPtr networks;
virInterfaceObjList ifaces; virInterfaceObjList ifaces;
bool transaction_running; bool transaction_running;
virInterfaceObjList backupIfaces; virInterfaceObjList backupIfaces;
...@@ -111,6 +107,16 @@ struct _testDriver { ...@@ -111,6 +107,16 @@ struct _testDriver {
size_t numAuths; size_t numAuths;
testAuthPtr auths; 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; virObjectEventStatePtr eventState;
}; };
typedef struct _testDriver testDriver; typedef struct _testDriver testDriver;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册