aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/xl.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-01-17 18:05:03 +0000
committerKeir Fraser <keir.fraser@citrix.com>2010-01-17 18:05:03 +0000
commit24cdde59ca1ca02ae0fe209a447d6810e2b47849 (patch)
tree54e468f50e1cfdfd67c14850fb2c2d4084e3d6c2 /tools/libxl/xl.c
parent590ab745d2dcdbd3d51305c7b74e0dae646d6a2e (diff)
downloadxen-24cdde59ca1ca02ae0fe209a447d6810e2b47849.tar.gz
xen-24cdde59ca1ca02ae0fe209a447d6810e2b47849.tar.bz2
xen-24cdde59ca1ca02ae0fe209a447d6810e2b47849.zip
libxenlight: separate logically list_vm and list_domain
previously list_domain was something between listing VM and domains. provide 2 separates API calls to list domains and list vms. the list vms API filters utility domains like stubdomains, and domain 0 change is_stubdom to properly check the integer and also return a boolean value. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
Diffstat (limited to 'tools/libxl/xl.c')
-rw-r--r--tools/libxl/xl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c
index 52bd8b8d02..451ab8cf50 100644
--- a/tools/libxl/xl.c
+++ b/tools/libxl/xl.c
@@ -1415,7 +1415,7 @@ void list_domains(void)
}
libxl_ctx_set_log(&ctx, log_callback, NULL);
- info = libxl_domain_list(&ctx, &nb_domain);
+ info = libxl_list_domain(&ctx, &nb_domain);
if (info < 0) {
fprintf(stderr, "libxl_domain_infolist failed.\n");