mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
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:
parent
64eaac81e5
commit
beba6a0ec8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user