mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
Add thread locking stubs
This commit is contained in:
parent
a2232a5cc2
commit
b43401b915
@ -1,3 +1,11 @@
|
||||
Thu Dec 4 20:47:41 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
Thread locking API stubs
|
||||
* src/domain_conf.c, src/domain_conf.h, src/libvirt_sym.version.in,
|
||||
src/network_conf.c, src/network_conf.h, src/node_device_conf.c,
|
||||
src/node_device_conf.h, src/storage_conf.c, src/storage_conf.h:
|
||||
Define API stubs for locking and unlocking objects
|
||||
|
||||
Thu Dec 4 16:51:41 CET 2008 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/libvirt_sym.version.in configure.in NEWS docs/*: release
|
||||
|
@ -3470,4 +3470,12 @@ const char *virDomainDefDefaultEmulator(virConnectPtr conn,
|
||||
}
|
||||
|
||||
|
||||
void virDomainObjLock(virDomainObjPtr obj ATTRIBUTE_UNUSED)
|
||||
{
|
||||
}
|
||||
|
||||
void virDomainObjUnlock(virDomainObjPtr obj ATTRIBUTE_UNUSED)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* ! PROXY */
|
||||
|
@ -593,6 +593,8 @@ const char *virDomainDefDefaultEmulator(virConnectPtr conn,
|
||||
virDomainDefPtr def,
|
||||
virCapsPtr caps);
|
||||
|
||||
void virDomainObjLock(virDomainObjPtr obj);
|
||||
void virDomainObjUnlock(virDomainObjPtr obj);
|
||||
|
||||
VIR_ENUM_DECL(virDomainVirt)
|
||||
VIR_ENUM_DECL(virDomainBoot)
|
||||
|
@ -374,6 +374,8 @@ LIBVIRT_PRIVATE_@VERSION@ {
|
||||
virDomainSoundModelTypeToString;
|
||||
virDomainVirtTypeToString;
|
||||
virDomainFSDefFree;
|
||||
virDomainObjLock;
|
||||
virDomainObjUnlock;
|
||||
|
||||
|
||||
/* domain_event.h */
|
||||
@ -478,6 +480,8 @@ LIBVIRT_PRIVATE_@VERSION@ {
|
||||
virNetworkDefParseNode;
|
||||
virNetworkRemoveInactive;
|
||||
virNetworkSaveConfig;
|
||||
virNetworkObjLock;
|
||||
virNetworkObjUnlock;
|
||||
|
||||
|
||||
/* nodeinfo.h */
|
||||
@ -492,6 +496,8 @@ LIBVIRT_PRIVATE_@VERSION@ {
|
||||
virNodeDeviceDefFree;
|
||||
virNodeDevCapsDefFree;
|
||||
virNodeDeviceDefFormat;
|
||||
virNodeDeviceObjLock;
|
||||
virNodeDeviceObjUnlock;
|
||||
|
||||
|
||||
/* qparams.h */
|
||||
@ -545,6 +551,8 @@ LIBVIRT_PRIVATE_@VERSION@ {
|
||||
virStoragePoolFormatFileSystemNetTypeToString;
|
||||
virStorageVolFormatFileSystemTypeToString;
|
||||
virStoragePoolTypeFromString;
|
||||
virStoragePoolObjLock;
|
||||
virStoragePoolObjUnlock;
|
||||
|
||||
|
||||
/* util.h */
|
||||
|
@ -811,3 +811,11 @@ int virNetworkDeleteConfig(virConnectPtr conn,
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void virNetworkObjLock(virNetworkObjPtr obj ATTRIBUTE_UNUSED)
|
||||
{
|
||||
}
|
||||
|
||||
void virNetworkObjUnlock(virNetworkObjPtr obj ATTRIBUTE_UNUSED)
|
||||
{
|
||||
}
|
||||
|
@ -155,5 +155,8 @@ int virNetworkLoadAllConfigs(virConnectPtr conn,
|
||||
int virNetworkDeleteConfig(virConnectPtr conn,
|
||||
virNetworkObjPtr net);
|
||||
|
||||
void virNetworkObjLock(virNetworkObjPtr obj);
|
||||
void virNetworkObjUnlock(virNetworkObjPtr obj);
|
||||
|
||||
#endif /* __NETWORK_CONF_H__ */
|
||||
|
||||
|
@ -397,3 +397,11 @@ void virNodeDevCapsDefFree(virNodeDevCapsDefPtr caps)
|
||||
VIR_FREE(caps);
|
||||
}
|
||||
|
||||
|
||||
void virNodeDeviceObjLock(virNodeDeviceObjPtr obj ATTRIBUTE_UNUSED)
|
||||
{
|
||||
}
|
||||
|
||||
void virNodeDeviceObjUnlock(virNodeDeviceObjPtr obj ATTRIBUTE_UNUSED)
|
||||
{
|
||||
}
|
||||
|
@ -190,4 +190,7 @@ void virNodeDeviceObjListFree(virNodeDeviceObjListPtr devs);
|
||||
|
||||
void virNodeDevCapsDefFree(virNodeDevCapsDefPtr caps);
|
||||
|
||||
void virNodeDeviceObjLock(virNodeDeviceObjPtr obj);
|
||||
void virNodeDeviceObjUnlock(virNodeDeviceObjPtr obj);
|
||||
|
||||
#endif /* __VIR_NODE_DEVICE_CONF_H__ */
|
||||
|
@ -1507,3 +1507,12 @@ char *virStoragePoolSourceListFormat(virConnectPtr conn,
|
||||
free(virBufferContentAndReset(&buf));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
void virStoragePoolObjLock(virStoragePoolObjPtr obj ATTRIBUTE_UNUSED)
|
||||
{
|
||||
}
|
||||
|
||||
void virStoragePoolObjUnlock(virStoragePoolObjPtr obj ATTRIBUTE_UNUSED)
|
||||
{
|
||||
}
|
||||
|
@ -326,6 +326,9 @@ void virStoragePoolObjRemove(virStoragePoolObjListPtr pools,
|
||||
char *virStoragePoolSourceListFormat(virConnectPtr conn,
|
||||
virStoragePoolSourceListPtr def);
|
||||
|
||||
void virStoragePoolObjLock(virStoragePoolObjPtr obj);
|
||||
void virStoragePoolObjUnlock(virStoragePoolObjPtr obj);
|
||||
|
||||
|
||||
enum virStoragePoolFormatFileSystem {
|
||||
VIR_STORAGE_POOL_FS_AUTO = 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user