summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use global thread-local error for all python error reportingv0.6.0Daniel P. Berrange2009-01-202-26/+25
|
* Replace __FUNCTION__ with __func__ for better portability (John Levon)Daniel P. Berrange2008-12-181-2/+2
|
* Fix gcc-ism in python build (John Levon)Daniel P. Berrange2008-12-181-2/+3
|
* syntax-check: enforce the no-cvs-keywords prohibitionJim Meyering2008-12-151-2/+0
| | | | | | | | * Makefile.maint (sc_prohibit_cvs_keyword): New rule. Suggested by Daniel Veillard. The new test exposed two uses of $Date$. * docs/Goals: Don't use $Date$. * python/TODO: Likewise.
* Support domain lifecycle events for Xen (Ben Guthro & Daniel Berrange)v0.5.1v0.5.0Daniel P. Berrange2008-11-251-1/+2
|
* Fix python bindings events code (David Lively)Daniel P. Berrange2008-11-245-42/+178
|
* Python binding for node device APIs (David Lively)Daniel P. Berrange2008-11-215-3/+149
|
* Add a virFreeCallback to event loop APIsDaniel P. Berrange2008-11-193-6/+34
|
* Change public API for virEventAddHandle to allow multiple registrations per FDDaniel P. Berrange2008-11-191-4/+4
|
* Add a virFreeCallback to virDomainEventRegister (from David Lively)Daniel P. Berrange2008-11-191-1/+1
|
* Add domain events detail informationDaniel P. Berrange2008-11-171-2/+4
|
* Fix domain events python thread safety & incorrect enum generationDaniel P. Berrange2008-11-171-14/+93
|
* * python/virConnect.py: needed for events from the python bindingsDaniel Veillard2008-10-311-0/+43
| | | | | by Ben Guthro daniel
* * python/Makefile.am python/generator.py python/libvir.cDaniel Veillard2008-10-316-6/+553
| | | | | | | | | | python/libvir.py python/libvirt_wrap.h python/types.c: adds support for events from the python bindings, also improves the generator allowing to embbed per function definition files, patch by Ben Guthro * examples/domain-events/events-python/event-test.py: also adds a programming example Daniel
* Massive patch adding event APIs by Ben GuthroDaniel Veillard2008-10-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | * include/libvirt/libvirt.h include/libvirt/libvirt.h.in src/libvirt.c src/libvirt_sym.version: new libvirt event entry points, big patch provided by Ben Guthro * Makefile.am configure.in src/driver.h src/event.c src/event.h src/internal.h src/libvirt.c src/libvirt_sym.version src/lxc_driver.c src/openvz_driver.c src/qemu_conf.h src/qemu_driver.c src/remote_internal.c src/storage_backend_fs.c src/test.c qemud/event.c qemud/event.h qemud/mdns.c qemud/qemud.c qemud/qemud.h qemud/remote.c qemud/remote_dispatch_localvars.h qemud/remote_dispatch_proc_switch.h qemud/remote_dispatch_prototypes.h qemud/remote_protocol.c qemud/remote_protocol.h qemud/remote_protocol.x proxy/Makefile.am python/generator.py: Not much is left untouched by the patch adding the events support * docs/libvirt-api.xml docs/libvirt-refs.xml docs/html/libvirt-libvirt.html: regenerated the docs * examples/domain-events/events-c/Makefile.am examples/domain-events/events-c/event-test.c: a test example * AUTHORS: added Ben Guthro daniel
* generate .gitignore files from .cvsignore onesJim Meyering2008-10-172-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.maint (sync-vcs-ignore-files): New target. Prompted by a patch from James Morris. http://thread.gmane.org/gmane.comp.emulators.libvirt/8619/focus=8773 Add all (now-generated) .gitignore files. * .gitignore: New file. * build-aux/.gitignore: New file. * docs/.gitignore: New file. * docs/devhelp/.gitignore: New file. * docs/examples/.gitignore: New file. * docs/examples/python/.gitignore: New file. * gnulib/lib/.gitignore: New file. * gnulib/lib/arpa/.gitignore: New file. * gnulib/lib/netinet/.gitignore: New file. * gnulib/lib/sys/.gitignore: New file. * gnulib/tests/.gitignore: New file. * include/.gitignore: New file. * include/libvirt/.gitignore: New file. * po/.gitignore: New file. * proxy/.gitignore: New file. * python/.gitignore: New file. * python/tests/.gitignore: New file. * qemud/.gitignore: New file. * src/.gitignore: New file. * tests/.gitignore: New file. * tests/confdata/.gitignore: New file. * tests/sexpr2xmldata/.gitignore: New file. * tests/virshdata/.gitignore: New file. * tests/xencapsdata/.gitignore: New file. * tests/xmconfigdata/.gitignore: New file. * tests/xml2sexprdata/.gitignore: New file.
* Xen interface order and fix python parallel buildDaniel Veillard2008-10-011-1/+1
| | | | | | | * src/xend_internal.c: fix ordering when parsing multiple Xen interfaces, patch by Jim Fehlig * python/Makefile.am: fix parallel build Daniel
* Use libvirt error message for python exceptionsv0.4.6Daniel P. Berrange2008-08-221-10/+11
|
* 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>