Add thread locking stubs

This commit is contained in:
Daniel P. Berrange 2008-12-04 20:53:20 +00:00
parent a2232a5cc2
commit b43401b915
10 changed files with 60 additions and 0 deletions

View File

@ -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> Thu Dec 4 16:51:41 CET 2008 Daniel Veillard <veillard@redhat.com>
* src/libvirt_sym.version.in configure.in NEWS docs/*: release * src/libvirt_sym.version.in configure.in NEWS docs/*: release

View File

@ -3470,4 +3470,12 @@ const char *virDomainDefDefaultEmulator(virConnectPtr conn,
} }
void virDomainObjLock(virDomainObjPtr obj ATTRIBUTE_UNUSED)
{
}
void virDomainObjUnlock(virDomainObjPtr obj ATTRIBUTE_UNUSED)
{
}
#endif /* ! PROXY */ #endif /* ! PROXY */

View File

@ -593,6 +593,8 @@ const char *virDomainDefDefaultEmulator(virConnectPtr conn,
virDomainDefPtr def, virDomainDefPtr def,
virCapsPtr caps); virCapsPtr caps);
void virDomainObjLock(virDomainObjPtr obj);
void virDomainObjUnlock(virDomainObjPtr obj);
VIR_ENUM_DECL(virDomainVirt) VIR_ENUM_DECL(virDomainVirt)
VIR_ENUM_DECL(virDomainBoot) VIR_ENUM_DECL(virDomainBoot)

View File

@ -374,6 +374,8 @@ LIBVIRT_PRIVATE_@VERSION@ {
virDomainSoundModelTypeToString; virDomainSoundModelTypeToString;
virDomainVirtTypeToString; virDomainVirtTypeToString;
virDomainFSDefFree; virDomainFSDefFree;
virDomainObjLock;
virDomainObjUnlock;
/* domain_event.h */ /* domain_event.h */
@ -478,6 +480,8 @@ LIBVIRT_PRIVATE_@VERSION@ {
virNetworkDefParseNode; virNetworkDefParseNode;
virNetworkRemoveInactive; virNetworkRemoveInactive;
virNetworkSaveConfig; virNetworkSaveConfig;
virNetworkObjLock;
virNetworkObjUnlock;
/* nodeinfo.h */ /* nodeinfo.h */
@ -492,6 +496,8 @@ LIBVIRT_PRIVATE_@VERSION@ {
virNodeDeviceDefFree; virNodeDeviceDefFree;
virNodeDevCapsDefFree; virNodeDevCapsDefFree;
virNodeDeviceDefFormat; virNodeDeviceDefFormat;
virNodeDeviceObjLock;
virNodeDeviceObjUnlock;
/* qparams.h */ /* qparams.h */
@ -545,6 +551,8 @@ LIBVIRT_PRIVATE_@VERSION@ {
virStoragePoolFormatFileSystemNetTypeToString; virStoragePoolFormatFileSystemNetTypeToString;
virStorageVolFormatFileSystemTypeToString; virStorageVolFormatFileSystemTypeToString;
virStoragePoolTypeFromString; virStoragePoolTypeFromString;
virStoragePoolObjLock;
virStoragePoolObjUnlock;
/* util.h */ /* util.h */

View File

@ -811,3 +811,11 @@ int virNetworkDeleteConfig(virConnectPtr conn,
return 0; return 0;
} }
void virNetworkObjLock(virNetworkObjPtr obj ATTRIBUTE_UNUSED)
{
}
void virNetworkObjUnlock(virNetworkObjPtr obj ATTRIBUTE_UNUSED)
{
}

View File

@ -155,5 +155,8 @@ int virNetworkLoadAllConfigs(virConnectPtr conn,
int virNetworkDeleteConfig(virConnectPtr conn, int virNetworkDeleteConfig(virConnectPtr conn,
virNetworkObjPtr net); virNetworkObjPtr net);
void virNetworkObjLock(virNetworkObjPtr obj);
void virNetworkObjUnlock(virNetworkObjPtr obj);
#endif /* __NETWORK_CONF_H__ */ #endif /* __NETWORK_CONF_H__ */

View File

@ -397,3 +397,11 @@ void virNodeDevCapsDefFree(virNodeDevCapsDefPtr caps)
VIR_FREE(caps); VIR_FREE(caps);
} }
void virNodeDeviceObjLock(virNodeDeviceObjPtr obj ATTRIBUTE_UNUSED)
{
}
void virNodeDeviceObjUnlock(virNodeDeviceObjPtr obj ATTRIBUTE_UNUSED)
{
}

View File

@ -190,4 +190,7 @@ void virNodeDeviceObjListFree(virNodeDeviceObjListPtr devs);
void virNodeDevCapsDefFree(virNodeDevCapsDefPtr caps); void virNodeDevCapsDefFree(virNodeDevCapsDefPtr caps);
void virNodeDeviceObjLock(virNodeDeviceObjPtr obj);
void virNodeDeviceObjUnlock(virNodeDeviceObjPtr obj);
#endif /* __VIR_NODE_DEVICE_CONF_H__ */ #endif /* __VIR_NODE_DEVICE_CONF_H__ */

View File

@ -1507,3 +1507,12 @@ char *virStoragePoolSourceListFormat(virConnectPtr conn,
free(virBufferContentAndReset(&buf)); free(virBufferContentAndReset(&buf));
return NULL; return NULL;
} }
void virStoragePoolObjLock(virStoragePoolObjPtr obj ATTRIBUTE_UNUSED)
{
}
void virStoragePoolObjUnlock(virStoragePoolObjPtr obj ATTRIBUTE_UNUSED)
{
}

View File

@ -326,6 +326,9 @@ void virStoragePoolObjRemove(virStoragePoolObjListPtr pools,
char *virStoragePoolSourceListFormat(virConnectPtr conn, char *virStoragePoolSourceListFormat(virConnectPtr conn,
virStoragePoolSourceListPtr def); virStoragePoolSourceListPtr def);
void virStoragePoolObjLock(virStoragePoolObjPtr obj);
void virStoragePoolObjUnlock(virStoragePoolObjPtr obj);
enum virStoragePoolFormatFileSystem { enum virStoragePoolFormatFileSystem {
VIR_STORAGE_POOL_FS_AUTO = 0, VIR_STORAGE_POOL_FS_AUTO = 0,