summaryrefslogtreecommitdiffstats
path: root/examples/list_domains.ml
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2008-01-08 13:26:23 +0000
committerRichard W.M. Jones <rjones@redhat.com>2008-01-08 13:26:23 +0000
commit9b4bab1fe618affd0e69666ec6467b414cee325e (patch)
treeff0334a53631096c82f1fe234c1c1775bc63adc9 /examples/list_domains.ml
parent4c5a6c02d72a5c40102b6c26705574f84c89eb20 (diff)
downloadvirt-top-9b4bab1fe618affd0e69666ec6467b414cee325e.tar.gz
virt-top-9b4bab1fe618affd0e69666ec6467b414cee325e.tar.xz
virt-top-9b4bab1fe618affd0e69666ec6467b414cee325e.zip
Move programming information to libvirt generated doc.
* README, libvirt/libvirt.mli: Moved programming information to libvirt generated documentation, greatly expanded examples and other issues. * examples/Makefile.in, examples/node_info.ml, examples/.depend: Added node_info example program. * .hgignore, Makefile.in: Ignore, clean up node_info binary. * examples/list_domains.ml: Make a read-only connection.
Diffstat (limited to 'examples/list_domains.ml')
-rw-r--r--[-rwxr-xr-x]examples/list_domains.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/list_domains.ml b/examples/list_domains.ml
index 9451ab2..c97432c 100755..100644
--- a/examples/list_domains.ml
+++ b/examples/list_domains.ml
@@ -17,7 +17,7 @@ let () =
Some (Sys.argv.(1))
else
None in
- let conn = C.connect ?name () in
+ let conn = C.connect_readonly ?name () in
(* List running domains. *)
let n = C.num_of_domains conn in