[libvirt] [PATCH 00/12] Split up large driver files

Daniel P. Berrange berrange at redhat.com
Wed Oct 22 17:14:50 UTC 2014


This patch series splits up the src/driver.h and src/libvirt.c
files into a number of smaller pieces.

The driver.h file gets split based on the the driver type,
while libvirt.c gets split slightly different based on the
object type. The reason for the difference is that the
hypervisor driver is rather large, so its useful to split
the domain, domain snapshot and connect/node APIs into
separate files.

There will be much more to follow this series. Just posting
this start now since it will be painful to rebase....

Daniel P. Berrange (12):
  Rename virDriver to virHypervisorDriver
  Split driver.h into multiple parts
  Move virDomainSnapshot related APIs out of libvirt.c
  Move virNetwork related APIs out of libvirt.c
  Move virInterface related APIs out of libvirt.c
  Move virNWFilter related APIs out of libvirt.c
  Move virNodeDevice related APIs out of libvirt.c
  Move virSecret related APIs out of libvirt.c
  Move virStream related APIs out of libvirt.c
  Move virStorage{Pool,Vol} related APIs out of libvirt.c
  Move virDomain related APIs out of libvirt.c
  Move virConnect/virNode related APIs out of libvirt.c

 cfg.mk                           |     4 +-
 docs/apibuild.py                 |    11 +
 docs/hvsupport.pl                |     2 +-
 po/POTFILES.in                   |     8 +
 src/Makefile.am                  |    20 +
 src/bhyve/bhyve_driver.c         |     4 +-
 src/datatypes.h                  |     3 +-
 src/driver-hypervisor.h          |  1396 +++
 src/driver-interface.h           |   131 +
 src/driver-network.h             |   166 +
 src/driver-nodedev.h             |   112 +
 src/driver-nwfilter.h            |    94 +
 src/driver-secret.h              |   114 +
 src/driver-state.h               |    58 +
 src/driver-storage.h             |   265 +
 src/driver-stream.h              |    72 +
 src/driver.h                     |  2172 +---
 src/esx/esx_driver.c             |     4 +-
 src/hyperv/hyperv_driver.c       |     4 +-
 src/libvirt-domain-snapshot.c    |  1222 +++
 src/libvirt-domain.c             | 11112 ++++++++++++++++++++
 src/libvirt-host.c               |  1515 +++
 src/libvirt-interface.c          |   835 ++
 src/libvirt-network.c            |  1251 +++
 src/libvirt-nodedev.c            |   756 ++
 src/libvirt-nwfilter.c           |   515 +
 src/libvirt-secret.c             |   695 ++
 src/libvirt-storage.c            |  2118 ++++
 src/libvirt-stream.c             |   704 ++
 src/libvirt.c                    | 20537 +------------------------------------
 src/libvirt_internal.h           |     6 +
 src/libvirt_private.syms         |     2 +-
 src/libxl/libxl_driver.c         |     4 +-
 src/lxc/lxc_driver.c             |     4 +-
 src/openvz/openvz_driver.c       |     4 +-
 src/parallels/parallels_driver.c |     4 +-
 src/phyp/phyp_driver.c           |     4 +-
 src/qemu/qemu_driver.c           |     4 +-
 src/remote/remote_driver.c       |     7 +-
 src/test/test_driver.c           |     4 +-
 src/uml/uml_driver.c             |     4 +-
 src/vbox/vbox_common.c           |     4 +-
 src/vbox/vbox_driver.c           |    14 +-
 src/vbox/vbox_get_driver.h       |     2 +-
 src/vbox/vbox_tmpl.c             |     4 +-
 src/vbox/vbox_uniformed_api.h    |     2 +-
 src/vmware/vmware_driver.c       |     4 +-
 src/xen/xen_driver.c             |     4 +-
 src/xenapi/xenapi_driver.c       |     4 +-
 49 files changed, 23289 insertions(+), 22696 deletions(-)
 create mode 100644 src/driver-hypervisor.h
 create mode 100644 src/driver-interface.h
 create mode 100644 src/driver-network.h
 create mode 100644 src/driver-nodedev.h
 create mode 100644 src/driver-nwfilter.h
 create mode 100644 src/driver-secret.h
 create mode 100644 src/driver-state.h
 create mode 100644 src/driver-storage.h
 create mode 100644 src/driver-stream.h
 create mode 100644 src/libvirt-domain-snapshot.c
 create mode 100644 src/libvirt-domain.c
 create mode 100644 src/libvirt-host.c
 create mode 100644 src/libvirt-interface.c
 create mode 100644 src/libvirt-network.c
 create mode 100644 src/libvirt-nodedev.c
 create mode 100644 src/libvirt-nwfilter.c
 create mode 100644 src/libvirt-secret.c
 create mode 100644 src/libvirt-storage.c
 create mode 100644 src/libvirt-stream.c

-- 
2.1.0




More information about the libvir-list mailing list