summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove all trailing blanks; turn on the rule to detect them.Jim Meyering2008-02-056-11/+11
| | | | | * Makefile.cfg (local-checks-to-skip): Remove sc_trailing_blank. * .x-sc_trailing_blank: New file, to exempt the few binary files.
* Enable the <config.h>-requiring test; fix violationsJim Meyering2008-01-292-2/+2
| | | | | | | Use <config.h>, not "config.h", per autoconf documentation. * Makefile.cfg (local-checks-to-skip) [sc_require_config_h]: Enable. * .x-sc_require_config_h: New file, to list exempted files. * Makefile.am (EXTRA_DIST): Add .x-sc_require_config_h.
* Given code like if (foo) free (foo); remove the useless "if (foo) " part.Jim Meyering2008-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Likewise, given if (foo != NULL) free (foo); remove the useless "if" test. * proxy/libvirt_proxy.c: Remove unnecessary "if" test before free. * python/generator.py: Likewise. * qemud/qemud.c: Likewise. * src/buf.c: Likewise. * src/conf.c: Likewise. * src/hash.c: Likewise. * src/iptables.c: Likewise. * src/libvirt.c: Likewise. * src/openvz_conf.c: Likewise. * src/qemu_conf.c: Likewise. * src/qemu_driver.c: Likewise. * src/remote_internal.c: Likewise. * src/test.c: Likewise. * src/virsh.c: Likewise. * src/virterror.c: Likewise. * src/xen_internal.c: Likewise. * src/xen_unified.c: Likewise. * src/xend_internal.c: Likewise. * src/xm_internal.c: Likewise. * src/xml.c: Likewise. * src/xmlrpc.c: Likewise. * src/xs_internal.c: Likewise. * tests/testutils.c: Likewise. * tests/xencapstest.c: Likewise. * tests/xmconfigtest.c: Likewise.
* Make python generator fail build on any missing APIsDaniel P. Berrange2008-01-212-92/+43
|
* Add missing vcpu/schedular APIs to python bindingDaniel P. Berrange2008-01-213-0/+352
|
* Handle PyTuple_New's malloc failure.Jim Meyering2008-01-171-6/+10
| | | | | | | * python/libvir.c (libvirt_virDomainBlockStats): Handle a NULL return from PyTuple_New. (libvirt_virDomainInterfaceStats, libvirt_virGetLastError): Likewise. (libvirt_virConnGetLastError): Likewise.
* Factor out some duplication.Jim Meyering2008-01-171-103/+58
| | | | | | * python/libvir.c (VIR_PY_NONE): New macro, to encapsulate a common two-statement sequence. Replace all such 2-stmt sequences.
* Use a variable name as sizeof argument, not a type name.Jim Meyering2007-12-111-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given code like: T *var = calloc (n, sizeof (T)); Convert to this: T *var = calloc (n, sizeof (*var)); This first-cut change adjusts all malloc, calloc, and realloc statements. The only binary differences are in remote_internal.c (due to the bug fix) and in xmlrpc.c (due to factorization). * python/libvir.c: As above. * qemud/event.c: Likewise. * qemud/mdns.c: Likewise. * qemud/qemud.c: Likewise. * qemud/remote.c: Likewise. * src/bridge.c: Likewise. * src/buf.c: Likewise. * src/conf.c: Likewise. * src/hash.c: Likewise. * src/iptables.c: Likewise. * src/openvz_conf.c: Likewise. * src/qemu_conf.c: Likewise. * src/qemu_driver.c: Likewise. * src/test.c: Likewise. * src/xen_internal.c: Likewise. * src/xen_unified.c: Likewise. * src/xm_internal.c: Likewise. * src/xml.c: Likewise. * tests/qemuxml2argvtest.c: Likewise. * src/xmlrpc.c (xmlRpcValuePtr): Likewise, and minor factorization. * src/remote_internal.c (remoteAuthMakeCredentials): Use the right type when allocating space for an array of cred _pointers_.
* Include "config.h" in remaining non-generated files.Jim Meyering2007-12-072-2/+6
| | | | | | | | | | * proxy/libvirt_proxy.c: Likewise. * python/libvir.c: Likewise. * python/types.c: Likewise. * src/event.c: Likewise. * src/xm_internal.c: Likewise. * tests/reconnect.c: Likewise. * tests/testutils.c: Likewise.
* * python/generator.py python/libvir.c python/libvirt-python-api.xml:Daniel Veillard2007-12-073-0/+48
| | | | | add a python binding for virNodeGetCellsFreeMemory Daniel
* Add manual impl of virConnectOpenAuth python bindingDaniel P. Berrange2007-12-052-0/+129
|
* Wed Dec 5 13:48:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>Richard W.M. Jones2007-12-052-4/+4
| | | | | | | | | | | | | | | | | | | * python/libvir.c, python/libvirt_wrap.h, qemud/qemud.c, qemud/remote.c, src/internal.h, src/openvz_conf.c, src/openvz_driver.c, src/proxy_internal.h, src/qemu_conf.c, src/qemu_driver.c, src/remote_internal.h, src/test.h, src/util.c, src/xen_unified.c, src/xen_unified.h, tests/nodeinfotest.c, tests/qemuxml2argvtest.c, tests/qemuxml2xmltest.c, tests/reconnect.c, tests/sexpr2xmltest.c, tests/virshtest.c, tests/xencapstest.c, tests/xmconfigtest.c, tests/xml2sexprtest.c: Change #include <> to #include "" for local includes. Removed many includes from src/internal.h and put them in the C files which actually use them. Removed <ansidecl.h> - unused. Added a comment around __func__. Removed a clashing redefinition of VERSION symbol. All limits (PATH_MAX etc) now done in src/internal.h, so we don't need to include those headers in other files.
* Fri Nov 30 11:04:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>Richard W.M. Jones2007-11-303-10/+24
| | | | | | | | | * python/libvir.c, python/libvir.py: Make Python aware that the C bindings module is called cygvirtmod.dll when compiled by CYGWIN. * python/Makefile.am: Remove symlink libvirtmod.dll -> cygvirtmod.dll no longer necessary because of the above. * configure.in: Remove AM_CONDITIONAL(CYGWIN).
* Thu Nov 29 17:40:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>Richard W.M. Jones2007-11-291-3/+12
| | | | | | | | | * configure.in: Added CYGWIN_EXTRA_LDFLAGS, CYGWIN_EXTRA_LIBADD, CYGWIN_EXTRA_PYTHON_LIBADD, CYGWIN automake conditional. * src/Makefile.am: Extra flags required to build DLL of libvirt for Cygwin. * python/Makefile.am: Extra flags and rule required to build Python module for Cygwin.
* Make "make distcheck" work.Jim Meyering2007-11-152-1/+7
| | | | | | | | | | | | | | | | | | | * Makefile.am: Expand some "*" wildcards, and (for now) disable the relatively unimportant, distuninstallcheck target. Fix a few redirect-directly-to-target bugs. Add a few $(srcdir)/ prefixes and add an uninstall-local rule. * docs/Makefile.am: More of the same. Split some long lines. * python/Makefile.am: Likewise. * python/tests/Makefile.am: Likewise. * qemud/Makefile.am: Likewise. * tests/Makefile.am: Remove the directories already listed in SUBDIRS. * docs/examples/index.py: Adapt to produce the desired changes in docs/examples/Makefile.am. Also, sort *.c, so results are reproducible, and emit a comment telling emacs and vi that the file is read-only. * docs/examples/Makefile.am: Regenerate. Author: Jim Meyering <meyering@redhat.com>
* * python/generator.py python/libvir.c python/libvirt-python-api.xml:v0.3.3LIBVIRT_0_3_3Daniel Veillard2007-09-303-0/+85
| | | | | provide bindings for block and interface statistics Daniel
* * libvirt.spec.in NEWS docs/* po/*: preparing release 0.3.1v0.3.2v0.3.1LIBVIRT_0_3_2LIBVIRT_0_3_1Daniel Veillard2007-07-241-4/+0
| | | | | | * src/libvirt.c python/generator.py: some cleanup and warnings from Richard W.M. Jones Daniel
* Tue Jun 26 14:40:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>v0.3.0LIBVIRT_0_3_0Richard W.M. Jones2007-06-261-18/+14
| | | | | | | | * src/remote_internal.c, python/Makefile.am: Python bindings fixed, and now building virConnect.getHostname and virConnect.getURI. Fixed a problem which stopped libvirt.py from being (re-)built. Rearranged python/Makefile.am to make it cleaner and clearer.
* Mon Jun 25 16:55:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>Richard W.M. Jones2007-06-251-0/+4
| | | | | | | * include/libvirt/libvirt.h.in, src/libvirt.c, src/libvirt_sym.version, python/generator.py: Added virDomainGetConnect and virNetworkGetConnect to allow us to get the "hidden" connection associated with each domain or network.
* Fri Jun 15 08:53:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>Richard W.M. Jones2007-06-151-9/+9
| | | | | | | | | | * src/internal.h, src/virsh.c: Replace _N with N_ so that Solaris builds work (Mark Johnson). * src/virsh.c: Add a couple of missing error messages (Mark Johnson). * python/types.c: Fix NULL pointer deref on DEBUG build (Mark Johnson). * src/virsh.c: Spelling fix (Mark Johnson).
* +Tue May 29 15:56:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>v0.2.3LIVIRT_0_2_3Richard W.M. Jones2007-05-293-0/+70
| | | | | | | | | | + + * python/generator.py, python/libvir.c, python/libvir.py: + Wrap the virGetVersion call as Python libvirt.getVersion. + + * src/libvirt.c: Change virGetVersion so that the driver name + is case insensitive. +
* Fixed exception reporting for domain/network operationsv0.2.2LIBVIRT_0_2_2Daniel P. Berrange2007-04-162-17/+40
|
* Added vir*GetAutostart APIs to pythonDaniel P. Berrange2007-04-102-0/+62
|
* * python/generator.py: Python bindings now throw exceptionsRichard W.M. Jones2007-03-281-9/+121
| | | | | in almost all cases where an error is encountered in the underlying libvirt code.
* * python/generator.py: patch from Tatsuro Enokura to fixv0.2.1LIBVIRT_0_2_1Daniel Veillard2007-03-161-2/+5
| | | | | virNetworkDefine binding Daniel
* * python/generator.py: fix the python binding generation forDaniel Veillard2007-03-151-0/+4
| | | | | | | virNetworkLookup...() functions, which were clashing with equivalent virConnLookup...() equivalents, as reported by Tatsuro Enokura Daniel
* Added python bindings for networking APIsDaniel P. Berrange2007-03-095-2/+250
|
* Fixed up numerous compiler warningsDaniel P. Berrange2007-03-064-5/+8
|
* Thu Mar 01 16:17:48 EST 2007 Mark McLoughlin <markmc@redhat.com>Mark McLoughlin2007-03-011-0/+1
| | | | | | | | | | | * acinclude.m4: add LIBVIRT_COMPILE_WARNINGS, copied from GNOME but with a few more flags we'd been using. * configure.in: use that instead of setting CFLAGS directly. * proxy/Makefile.am, python/Makefile.am, qemud/Makefile.am, src/Makefile.am, tests/Makefile.am: use $(WARN_CFLAGS)
* Blacklist vshRunConsole from pythonv0.2.0LIBVIRT_0_2_0Daniel P. Berrange2007-02-141-1/+2
|
* Mon Jan 23 14:36:18 IST 2007 Mark McLoughlin <markmc@redhat.com>Mark McLoughlin2007-01-231-3/+3
| | | | | | | | | | | | * include/libvirt/libvirt.h.in: add VIR_UUID_BUFLEN and VIR_UUID_STRING_BUFLEN * libvirt/proxy/libvirt_proxy.c, libvirt/src/hash.c, libvirt/src/internal.h, libvirt/src/libvirt.c, libvirt/src/proxy_internal.c, libvirt/src/test.c, libvirt/src/virsh.c, libvirt/src/xend_internal.c, libvirt/src/xm_internal.c, libvirt/src/xml.c, libvirt/python/libvir.c: use them
* Added binding for virConnectListDefinedDomains apiv0.1.9v0.1.11v0.1.10LIBVIRT_0_1_9LIBVIRT_0_1_11LIBVIRT_0_1_10Daniel P. Berrange2006-11-163-0/+53
|
* Fix unsigned long wraparound in python bindingDaniel P. Berrange2006-11-153-2/+15
|
* Fixed string concatenation in case where there is no lower level errorDaniel P. Berrange2006-11-101-1/+4
|
* * python/generator.py: changed the generator to generate a referenceDaniel Veillard2006-11-091-0/+10
| | | | | | | from Domain class instances to the Connect they were issued from should fix rhbz#204490 * docs//*: rebuilt Daniel
* Propagate libvirt errors back with python exceptionsDaniel P. Berrange2006-11-073-4/+128
|
* Make python bindings threaded, by dropping/acquiring Python GIL where neededDaniel P. Berrange2006-10-243-3/+78
|
* * python/libvir.c: Pete Vetere pointed out a bug in string castv0.1.8v0.1.7v0.1.6LIBVIRT_0_1_8LIBVIRT_0_1_7LIBVIRT_0_1_6Daniel Veillard2006-08-291-4/+4
| | | | | when handling errors in Python Daniel
* * python/generator.py: fix the generator when handling long integersv0.1.4LIBVIRT_0_1_4Daniel Veillard2006-08-041-2/+2
| | | | | | Dan Berrange reported problems due to this when using virDomainSetMemory bindings Daniel
* unleash the hush puppiesv0.1.3LIBVIRT_0_1_3Mark McLoughlin2006-07-052-0/+14
|
* * configure.in libvirt.spec.in docs/examples/* include/Makefile.amDaniel Veillard2006-06-263-5/+5
| | | | | | | | | | include/libvirt/virterror.h python/generator.py python/libvir.c python/libvirt_wrap.h src/driver.h src/internal.h src/test.h src/virsh.c src/virterror.c src/xend_internal.c src/xend_internal.h src/xml.c src/xml.h: moved the includes from include/ to include/libvirt to reflect the installed include tree. This avoid using "" in the includes themselves. Daniel
* * python/libvir.c: fixed a bug in the new wrapperv0.1.1v0.1.0LIBVIRT_0_1_1LIBVIRT_0_1_0Daniel Veillard2006-03-294-4/+40
| | | | | | | * python/tests/Makefile.am python/tests/node.py: added a new test for the new API * python/tests/create.py: remove a debug Daniel
* * include/libvirt.h[.in] include/virterror.h src/driver.hDaniel Veillard2006-03-293-3/+42
| | | | | | | | | | | src/internal.h src/libvirt_sym.version src/xen_internal.c src/xs_internal.c: added a new entry point to get node hardware informations virGetNodeInfo, and associated driver hook. * src/xend_internal.c: implemented the node and version information hooks for the Xen Daemon * python/libvir.c python/libvirt-python-api.xml python/generator.py: also added Python bindings for the new call Daniel
* * python/libvir.c: call the initialize entry pointDaniel Veillard2006-03-284-7/+19
| | | | | | | | * src/libvirt_sym.version: add initialize entry point * src/libvirt.c: make sure we always initialize the lib * python/tests/*.py: start updating exemple for exception handling as pointed by Jim Meyering Daniel
* * doc/site.xsl doc/libvir.html doc/*: added informations aboutDaniel Veillard2006-03-281-0/+1
| | | | | | the Perl bindings, regenerated * python/libvirt_wrap.h: added a missing include. Daniel
* * src/xs_internal.c src/xs_internal.h include/virterror.hDaniel Veillard2006-03-231-1/+1
| | | | | | | src/virterror.c: created a new module related to Xen Store accesses * src/libvirt.c src/xen_internal.[ch] src/xend_internal.[ch]: nearly completed the separation of the code from the different modules Daniel
* * python/tests/create.py: add one more image pathDaniel Veillard2006-03-221-0/+1
| | | | | | * src/libvirt.c src/xend_internal.c src/xend_internal.h: more work on the xend refactoring Daniel
* * python/tests/create.py: adapt to new naming scheme in FC5Daniel Veillard2006-03-221-2/+7
| | | | Daniel
* * NEWS configure.in libvirt.spec.in include/libvirt.h docs/*:Daniel Veillard2006-02-281-1/+2
| | | | | preparing release 0.0.6 Daniel
* Fixed the test, danielDaniel Veillard2006-02-281-2/+3
|