summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix connection lookup in python storage instancesDaniel Veillard2008-08-121-1/+5
| | | | | | * python/generator.py: patch from Cole Robinson trying to fix problem of connection lookup when creating storage instances Daniel
* Skip python bindings for virDomainBlockPeek and virDomainMemoryPeekDaniel Veillard2008-07-251-0/+2
| | | | | | * python/generator.py: skip generation for virDomainBlockPeek and virDomainMemoryPeek as they break the build Daniel
* Ignore JIT'd python filesDaniel P. Berrange2008-07-091-0/+1
|
* * python/types.c: patch from Ryan Scott to remove misplaced verbosityDaniel Veillard2008-06-251-40/+0
| | | | | when compiling in debug mode. Daniel
* * python/libvir.py python/libvirt-python-api.xml: more pythonv0.4.4Daniel Veillard2008-06-112-1/+10
| | | | | cleanups by Cole Robinson Daniel
* * python/generator.py python/libvir.c python/libvirt-python-api.xml:Daniel Veillard2008-06-103-2/+105
| | | | | Apply patch from Cole Robinson fixing UUIDString for python Daniel
* Fix python code generation for storage APIsDaniel P. Berrange2008-05-291-0/+25
|
* Don't free C object after destroy method in pythonDaniel P. Berrange2008-05-211-6/+1
|
* Python header workaroundDaniel P. Berrange2008-04-181-0/+5
|
* Work around Python.h name-space pollution.Jim Meyering2008-04-181-1/+6
| | | | | * python/libvir.c (HAVE_PTHREAD_H): #undef. Without this, we'd get a redefinition warning.
* convert TAB-based indentation in C sources to use only spacesJim Meyering2008-04-102-22/+22
| | | | | | Done using this command (also includes .c.in and .h.in files): for i in $(g ls-files|grep -E '\.[ch](\.in)?$'|grep -v gnulib); do expand -i $i > j && mv j $i;done
* remove Vim and Emacs variable settings from C source filesJim Meyering2008-04-101-14/+0
| | | | | | | | | Done with these commands: git grep -l Local.variab|xargs \ perl -0x3b -pi -e 's,\n+/\*\n \* vim:(.|\n)*,\n,' git grep -l Local.variab|xargs \ perl -0x3b -pi -e 's,\n+/\*\n \* Local variables:\n(.|\n)*,\n,'
* Fix potential infinite loop in python generatorv0.4.2Daniel Veillard2008-04-081-0/+3
| | | | | * python/generator.py: fix an infinite loop bug Daniel
* Fix typo "informations" -> "information" (Atsushi SAKAI andRichard W.M. Jones2008-03-143-7/+7
| | | | Saori FUKUTA).
* Many typos fixed (Atsushi SAKAI).v0.4.1Richard W.M. Jones2008-02-293-8/+8
|
* Added python binding for storage APIsDaniel P. Berrange2008-02-204-3/+437
|
* Python bindings return values fixesDaniel Veillard2008-02-071-11/+13
| | | | | | * python/libvir.c: apply patch from Cole Robinson to provide return values for manulally written python bindings. Daniel
* 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.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.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.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.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.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.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.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.10Daniel P. Berrange2006-11-163-0/+53
|
* Fix unsigned long wraparound in python bindingDaniel P. Berrange2006-11-153-2/+15
|