Re: [libvirt PATCH 0/6] src: make virObject inherit from GObject

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/19/20 7:41 PM, Daniel P. Berrangé wrote:
This series attempts to make the conversion from virObject to
GObject less dangerous, by making the former inherit from the
latter.

The way we setup inheritance with virObject means we have to
make some moderately gross games with registering virClass
instances as GObjectClass instances. Empirically it seems to
work and pass the basic TCK test suite.

Ultimately virObject should be deleted entirely, so the gross
bits shouldn't live too long.

Daniel P. Berrangé (6):
   qemu: stop checking virObjectUnref return value
   src: make virObjectUnref return void
   test: allocate numa cells separately from driver
   src: don't include ref count in debug messages / probes
   src: don't use VIR_FREE on an object allocation
   src: make virObject inherit from GObject

  src/admin/libvirt-admin.c               |   7 +-
  src/datatypes.c                         |  26 ++++
  src/datatypes.h                         |   6 +
  src/interface/interface_backend_netcf.c |   7 +-
  src/libvirt-domain-checkpoint.c         |   3 +-
  src/libvirt-domain-snapshot.c           |   3 +-
  src/libvirt-domain.c                    |   2 +-
  src/libvirt-host.c                      |   2 +-
  src/libvirt-interface.c                 |   2 +-
  src/libvirt-network.c                   |   6 +-
  src/libvirt-nodedev.c                   |   2 +-
  src/libvirt-nwfilter.c                  |   6 +-
  src/libvirt-secret.c                    |   3 +-
  src/libvirt-storage.c                   |   4 +-
  src/libvirt-stream.c                    |   3 +-
  src/libvirt.c                           |   4 +-
  src/libvirt_qemu_probes.d               |   8 +-
  src/qemu/qemu_domain.c                  |   4 +-
  src/qemu/qemu_monitor.c                 |  21 +++-
  src/qemu/qemu_monitor.h                 |   3 +
  src/qemu/qemu_process.c                 |  30 ++---
  src/rpc/virnettlscontext.c              |   5 +-
  src/test/test_driver.c                  |  15 ++-
  src/util/virfdstream.c                  |   6 +-
  src/util/virobject.c                    | 150 ++++++++++++++----------
  src/util/virobject.h                    |  27 ++---
  src/vbox/vbox_common.c                  |  10 +-
  27 files changed, 210 insertions(+), 155 deletions(-)


Reviewed-by: Michal Privoznik <mprivozn@xxxxxxxxxx>

Michal




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux