• D
    Convert public datatypes to inherit from virObject · 46ec5f85
    Daniel P. Berrange 提交于
    This converts the following public API datatypes to use the
    virObject infrastructure:
    
      virConnectPtr
      virDomainPtr
      virDomainSnapshotPtr
      virInterfacePtr
      virNetworkPtr
      virNodeDevicePtr
      virNWFilterPtr
      virSecretPtr
      virStreamPtr
      virStorageVolPtr
      virStoragePoolPtr
    
    The code is significantly simplified, since the mutex in the
    virConnectPtr object now only needs to be held when accessing
    the per-connection virError object instance. All other operations
    are completely lock free.
    
    * src/datatypes.c, src/datatypes.h, src/libvirt.c: Convert
      public datatypes to use virObject
    * src/conf/domain_event.c, src/phyp/phyp_driver.c,
      src/qemu/qemu_command.c, src/qemu/qemu_migration.c,
      src/qemu/qemu_process.c, src/storage/storage_driver.c,
      src/vbox/vbox_tmpl.c, src/xen/xend_internal.c,
      tests/qemuxml2argvtest.c, tests/qemuxmlnstest.c,
      tests/sexpr2xmltest.c, tests/xmconfigtest.c: Convert
      to use virObjectUnref/virObjectRef
    Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
    46ec5f85
datatypes.h 10.0 KB