diff options
author | Osier Yang <jyang@redhat.com> | 2012-08-03 23:48:05 +0800 |
---|---|---|
committer | Osier Yang <jyang@redhat.com> | 2012-08-14 17:27:49 +0800 |
commit | bb705e251931754faa246145ebbd5deb8d692daa (patch) | |
tree | 6e0a6d3dc9c47c2654ea81a9d89cbba8fbc8b45d /src/parallels | |
parent | json: fix interface locale dependency (diff) | |
download | libvirt-bb705e251931754faa246145ebbd5deb8d692daa.tar.gz libvirt-bb705e251931754faa246145ebbd5deb8d692daa.tar.bz2 libvirt-bb705e251931754faa246145ebbd5deb8d692daa.zip |
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
Diffstat (limited to 'src/parallels')
-rw-r--r-- | src/parallels/parallels_driver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parallels/parallels_driver.c b/src/parallels/parallels_driver.c index 05db54f71..60827b989 100644 --- a/src/parallels/parallels_driver.c +++ b/src/parallels/parallels_driver.c @@ -50,7 +50,6 @@ #include "configmake.h" #include "storage_file.h" #include "nodeinfo.h" -#include "virdomainlist.h" #include "parallels_driver.h" #include "parallels_utils.h" @@ -810,7 +809,7 @@ parallelsListAllDomains(virConnectPtr conn, parallelsConnPtr privconn = conn->privateData; int ret = -1; - virCheckFlags(VIR_CONNECT_LIST_FILTERS_ALL, -1); + virCheckFlags(VIR_CONNECT_LIST_DOMAINS_FILTERS_ALL, -1); parallelsDriverLock(privconn); ret = virDomainList(conn, privconn->domains.objs, domains, flags); parallelsDriverUnlock(privconn); |