]> xenbits.xensource.com Git - libvirt.git/commit
Destroy virdomainlist.[ch]
authorOsier Yang <jyang@redhat.com>
Fri, 3 Aug 2012 15:48:05 +0000 (23:48 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 14 Aug 2012 09:27:49 +0000 (17:27 +0800)
commitbb705e251931754faa246145ebbd5deb8d692daa
tree6e0a6d3dc9c47c2654ea81a9d89cbba8fbc8b45d
parent43bfa23e6f968be9a8c134a4b5c3cfb6da3816d9
Destroy virdomainlist.[ch]

As the consensus in:
https://www.redhat.com/archives/libvir-list/2012-July/msg01692.html,
this patch is to destroy conf/virdomainlist.[ch], folding the
helpers into conf/domain_conf.[ch].

* src/Makefile.am:
  - Various indention fixes incidentally
  - Add macro DATATYPES_SOURCES (datatypes.[ch])
  - Link datatypes.[ch] for libvirt_lxc

* src/conf/domain_conf.c:
  - Move all the stuffs from virdomainlist.c into it
  - Use virUnrefDomain and virUnrefDomainSnapshot instead of
    virDomainFree and virDomainSnapshotFree, which are defined
    in libvirt.c, and we don't want to link to it.
  - Remove "if" before "free" the object, as virObjectUnref
    is in the list "useless_free_options".

* src/conf/domain_conf.h:
  - Move all the stuffs from virdomainlist.h into it
  - s/LIST_FILTER/LIST_DOMAINS_FILTER/

* src/libxl/libxl_driver.c:
  - s/LIST_FILTER/LIST_DOMAINS_FILTER/
  - no (include "virdomainlist.h")

* src/libxl/libxl_driver.c: Likewise

* src/lxc/lxc_driver.c: Likewise

* src/openvz/openvz_driver.c: Likewise

* src/parallels/parallels_driver.c: Likewise

* src/qemu/qemu_driver.c: Likewise

* src/test/test_driver.c: Likewise

* src/uml/uml_driver.c: Likewise

* src/vbox/vbox_tmpl.c: Likewise

* src/vmware/vmware_driver.c: Likewise

* tools/virsh-domain-monitor.c: Likewise

* tools/virsh.c: Likewise
16 files changed:
src/Makefile.am
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/virdomainlist.c [deleted file]
src/conf/virdomainlist.h [deleted file]
src/libxl/libxl_driver.c
src/lxc/lxc_driver.c
src/openvz/openvz_driver.c
src/parallels/parallels_driver.c
src/qemu/qemu_driver.c
src/test/test_driver.c
src/uml/uml_driver.c
src/vbox/vbox_tmpl.c
src/vmware/vmware_driver.c
tools/virsh-domain-monitor.c
tools/virsh.c