On Fri, Sep 09, 2011 at 07:24:40PM +0800, Osier Yang wrote: > This patchset is to expose QEMU APIs to Python binding, as we > don't intend to support the QEMU APIs officially, it's exposed > seperately with general libvirt APIs with standalone > libvirt_qemu.py and libvirtmod_qemu.so. And there is no class > for QEMU APIs, there are written directly as function in > libvirt_qemu.py. > > How to use the APIs. > > #! /usr/bin/python -u > import libvirt > import libvirt_qemu > > conn = libvirt.open(None) > dom = conn.lookupByName('test') > > print libvirt_qemu.qemuMonitorCommand(dom, 'info blockstats', 1) > libvirt_qemu.qemuAttach(conn, 2307, 0) > > PS: make check/make dist/make rpm are passed. I found another problem when running 'make dist', I had to apply the following patch to avoid an error due to the fact the 2 files are not generated. I looked and generating them would require to patch the XSLT files and docs/Makefile.am . So as a temporary mesure I just removed them but we probably ought to fix this Daniel diff --git a/docs/Makefile.am b/docs/Makefile.am index 0eb69b2..0b8f226 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -17,7 +17,6 @@ BUILT_SOURCES=hvsupport.html.in apihtml = \ html/index.html \ html/libvirt-libvirt.html \ - html/libvirt-libvirt-qemu.html \ html/libvirt-virterror.html apipng = \ @@ -31,7 +30,6 @@ devhelphtml = \ devhelp/index.html \ devhelp/general.html \ devhelp/libvirt-libvirt.html \ - devhelp/libvirt-libvirt-qemu.html \ devhelp/libvirt-virterror.html css = \ -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@xxxxxxxxxxxx | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list