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.
This commit is contained in:
Peter Krempa 2015-06-24 12:46:19 +02:00
parent 64eaac81e5
commit beba6a0ec8

View File

@ -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;