summaryrefslogtreecommitdiffstats
path: root/libvirt/generator.pl
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2008-01-20 12:34:13 +0000
committerRichard W.M. Jones <rjones@redhat.com>2008-01-20 12:34:13 +0000
commite7c94d95feb1fb3d7249c2ead935fe2e56ec31a4 (patch)
treeeff9c0ef192b6a7dd500662b62697e303279a497 /libvirt/generator.pl
parentcb83441a2e80b7e57ea0010ca010ea939b416506 (diff)
downloadvirt-top-e7c94d95feb1fb3d7249c2ead935fe2e56ec31a4.tar.gz
virt-top-e7c94d95feb1fb3d7249c2ead935fe2e56ec31a4.tar.xz
virt-top-e7c94d95feb1fb3d7249c2ead935fe2e56ec31a4.zip
Implemented virStorageVolLookupByName & virStorageVolCreateXML.
Diffstat (limited to 'libvirt/generator.pl')
-rwxr-xr-xlibvirt/generator.pl14
1 files changed, 6 insertions, 8 deletions
diff --git a/libvirt/generator.pl b/libvirt/generator.pl
index 0a73264..8b20adf 100755
--- a/libvirt/generator.pl
+++ b/libvirt/generator.pl
@@ -155,14 +155,14 @@ my @functions = (
{ name => "virStorageVolFree", sig => "vol : free", weak => 1 },
{ name => "virStorageVolDestroy", sig => "vol : free", weak => 1 },
-# { name => "virStorageVolLookupByName", XXX see libvir-list posting
-# sig => "pool, string : vol", weak => 1 },
+ { name => "virStorageVolLookupByName",
+ sig => "pool, string : vol from pool", weak => 1 },
{ name => "virStorageVolLookupByKey",
sig => "conn, string : vol", weak => 1 },
{ name => "virStorageVolLookupByPath",
sig => "conn, string : vol", weak => 1 },
-# { name => "virStorageVolCreateXML",
-# sig => "pool, string : vol", weak => 1 }, XXX
+ { name => "virStorageVolCreateXML",
+ sig => "pool, string, 0 : vol from pool", weak => 1 },
{ name => "virStorageVolGetXMLDesc",
sig => "vol, 0 : string", weak => 1 },
{ name => "virStorageVolGetPath",
@@ -193,8 +193,6 @@ my @functions = (
# written in 'libvirt_c_oneoffs.c'.
my @unimplemented = (
- "ocaml_libvirt_storage_vol_lookup_by_name", # XXX see above
- "ocaml_libvirt_storage_vol_create_xml", # XXX see above
);
#----------------------------------------------------------------------
@@ -957,9 +955,9 @@ END
# Unimplemented functions.
-printf "$0: warning: %d unimplemented functions\n", scalar (@unimplemented);
-
if (@unimplemented) {
+ printf "$0: warning: %d unimplemented functions\n", scalar (@unimplemented);
+
print F <<'END';
/* The following functions are unimplemented and always fail.
* See generator.pl '@unimplemented'