Daniel Veillard [Wed, 14 Jun 2006 15:44:14 +0000 (15:44 +0000)]
* src/libvirt.c src/xend_internal.c src/xend_internal.h: cleaned up
virConnectListDomains and virConnectNumOfDomains, implemented xend
driver entry point for them.
daniel
Daniel Veillard [Tue, 13 Jun 2006 16:31:44 +0000 (16:31 +0000)]
* docs//*: rebuilt the documentation
* src/driver.h src/libvirt.c src/test.c src/xen_internal.c
src/xend_internal.c src/xs_internal.c: started to fix some of
the driver related problem raised by Daniel Berrange, added a
ver version field to drivers.
Daniel
Daniel Veillard [Mon, 29 May 2006 18:03:27 +0000 (18:03 +0000)]
* src/hash.c, src/internal.h: Switch the uuid parameter in virGetDomain
to be of type 'unsigned char' since its a raw UUID we're passing in,
not a printable one.
* src/libvirt.c: Remove bogus "unsigned char" -> "char" type casts. Hook
up the "domainLookupByID", "domainLookupByUUID", "domainLookupByName"
and "domainGetInfo" driver backend functions.
Daniel
Daniel Veillard [Fri, 28 Apr 2006 18:29:26 +0000 (18:29 +0000)]
* src/hash.c src/internal.h src/libvirt.c src/virterror.c
src/xml.h include/libvirt.h[.in] include/virterror.h: started
adding new APIs, some still TODO, and not tested yet
Daniel
Daniel Veillard [Tue, 25 Apr 2006 16:08:48 +0000 (16:08 +0000)]
* configure.in libvirt.spec.in docs/examples/Makefile.am
docs/examples/index.py docs/examples/python/*: integrated
examples for Python from David Lutterkort
Daniel
Daniel Veillard [Mon, 24 Apr 2006 18:21:29 +0000 (18:21 +0000)]
* src/hash.c src/internal.h: add virGetDomainByID() to speed up
some processing but not used yet
* src/libvirt.c src/xen_internal.c src/xen_internal.h: added domain
listing and number queries entry points based on the hypervisor
which should speed up some processing as root.
Daniel
Daniel Veillard [Thu, 13 Apr 2006 17:18:49 +0000 (17:18 +0000)]
* include/libvirt.h include/libvirt.h.in doc/*: added new entry point
virDomainSetMemory to set up the target memory use for a domain
* src/driver.h src/libvirt.c src/xen_internal.c src/xend_internal.[ch]
src/xs_internal.[ch]: added a new entry point in the drivers for this,
also fixed the xen store entry, as changing
/local/domain/$$/memory/target affects the target memory not the max,
apparently max is not visible at the xenstore level (or I missed it)
Daniel
Daniel Veillard [Mon, 10 Apr 2006 14:15:33 +0000 (14:15 +0000)]
* NEWS configure.in libvirt.spec.in docs/*: documented and
regenerated for release of 0.1.0
* Makefile.am virsh.1: added man page from Andrew Puch
Daniel
Daniel Veillard [Mon, 10 Apr 2006 08:32:34 +0000 (08:32 +0000)]
* src/xend_internal.c src/xml.c: applied patch from Jim Fehlig
for lifecycle events
* docs/format.html docs/libvir.html: added the associated docs for
the new constructs
* TODO: small update
Daniel
Daniel Veillard [Sun, 9 Apr 2006 13:11:22 +0000 (13:11 +0000)]
* TODO src/hash.[ch] src/internal.h src/libvirt.c src/xend_internal.c
src/xs_internal.c: implementing domain pointers unification, thread
safety and reference counting for domain and connections, this was
the last critical change needed before making further progresses at
the API level. Still a couple fo things TODO for this, unification
at the Python level and adding UUID to hash. All domain/connect alloc
and free routines are now centralized in hash.c
* docs/APIchunk1.html docs/libvirt-api.xml docs/libvirt-refs.xml
docs/html/libvirt-libvirt.html: regenerated the docs, that doesn't
change the API.
Daniel
Daniel Veillard [Wed, 5 Apr 2006 09:31:29 +0000 (09:31 +0000)]
* src/hash.c: tiny fix
* src/internal.h: starting to work on reentrancy
* src/libvirt.c: applied patch from Jim Fehlig to fix
virDomainLookupByID when run as root.
Daniel
Daniel Veillard [Mon, 3 Apr 2006 13:46:43 +0000 (13:46 +0000)]
* include/libvirt.h[.in] src/driver.h src/libvirt.c
src/libvirt_sym.version src/*_internal.[ch]: added an entry
point for reboot and corresponding driver plug
* src/virsh.c: added a reboot option using it
* docs/*: regenerated
Daniel
Daniel Veillard [Thu, 30 Mar 2006 16:08:13 +0000 (16:08 +0000)]
* src/virsh.c: allocation check (Jim Meyering) and adding a
new create command
* src/xend_internal.c src/xml.c: trying to cope with the new
xvda domains states generated on FC5, but Dom0 bootloader
really break the model, so that doesn't work.
Daniel
Daniel Veillard [Wed, 29 Mar 2006 13:33:37 +0000 (13:33 +0000)]
* python/libvir.c: fixed a bug in the new wrapper
* python/tests/Makefile.am python/tests/node.py: added a new test for
the new API
* python/tests/create.py: remove a debug
Daniel
Daniel Veillard [Wed, 29 Mar 2006 12:46:03 +0000 (12:46 +0000)]
* include/libvirt.h[.in] include/virterror.h src/driver.h
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
Daniel Veillard [Tue, 28 Mar 2006 14:41:04 +0000 (14:41 +0000)]
* python/libvir.c: call the initialize entry point
* 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
Daniel Veillard [Mon, 27 Mar 2006 15:24:36 +0000 (15:24 +0000)]
* doc/*: updated module list and rebuilt
* include/libvirt.h include/libvirt.h.in: added intialization function
* include/virterror.h src/virterror.c: one more error code
* src/internal.h: first part of Jim's format checking
* src/libvirt.c src/xen_internal.[ch] src/xend_internal.[ch]
src/xs_internal.[ch]: initialization and registration of drivers
Daniel
Daniel Veillard [Thu, 23 Mar 2006 15:42:10 +0000 (15:42 +0000)]
* src/xs_internal.c src/xs_internal.h include/virterror.h
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
Daniel Veillard [Mon, 20 Mar 2006 23:42:12 +0000 (23:42 +0000)]
* src/driver.h src/xen_internal.c: just add a driver block for
the Xen hypervisor direct access module. Need to convert
xend_internal.[ch] and make one for the Xenstore now ...
Daniel
Daniel Veillard [Mon, 20 Mar 2006 17:49:28 +0000 (17:49 +0000)]
* src/driver.h src/internal.h src/libvirt.c src/xen_internal.c
src/xen_internal.h docs/apibuild.py: starting the refactoring,
first the direct Xen hypervisor module. New header describing the
entry points of a driver.
Daniel
Daniel Veillard [Wed, 15 Mar 2006 12:13:25 +0000 (12:13 +0000)]
* src/hash.c src/hash.h src/internal.h src/libvirt.c src/sexpr.c
src/sexpr.h src/virsh.c src/virterror.c src/xen_internal.c
src/xen_internal.h src/xend_internal.c src/xend_internal.h
src/xml.c src/xml.h: applied cb/indent to homogenize the source
style, as a first pass.
Daniel
Daniel Veillard [Tue, 28 Feb 2006 12:17:00 +0000 (12:17 +0000)]
* TODO: updated
* python/Makefile.am python/generator.py python/libvir.c
python/libvir.py: improved python binding, raise exception
when an instance creation or lookup fails, and add support
for the global error handler, per conn handler still needed
* python/tests/error.py python/tests/Makefile.am: adding a
regression test
Daniel
Daniel Veillard [Mon, 27 Feb 2006 22:32:54 +0000 (22:32 +0000)]
* TODO: updated, and added python hooks for error handling
* include/virterror.h src/virterror.c src/xml.c: error interception
and reporting should be done.
Daniel
Daniel Veillard [Mon, 27 Feb 2006 21:34:28 +0000 (21:34 +0000)]
* include/virterror.h src/libvirt_sym.version: exported
virDefaultErrorFunc()
* src/sexpr.c src/xen_internal.c src/virterror.c include/virterror.h:
adding more error reporting though the code, nearly complete.
* src/sexpr.c: added specific error function to avoid an error report.
Daniel
Daniel Veillard [Mon, 27 Feb 2006 16:27:18 +0000 (16:27 +0000)]
* TODO: updated
* include/virterror.h src/internal.h src/libvirt.c src/virterror.c
src/xend_internal.c: commiting a first pass at adding error handling
in the code, not finished, but it starts to work, need more coverage
and testing.
Daniel
Daniel Veillard [Fri, 24 Feb 2006 22:36:10 +0000 (22:36 +0000)]
* src/Makefile.am src/internal.h src/libvirt.c src/libvirt_sym.version
src/virterror.c include/Makefile.am include/virterror.h: adding
the public APIs for errors, callbacks and synchronous. The boring
stuff is still left to do, plugging it. Also need to be exposed
at the python level.
* doc//*: rebuilt
Daniel
Daniel Veillard [Fri, 24 Feb 2006 12:26:56 +0000 (12:26 +0000)]
* python/generator.py python/libvir.c python/libvirt-python-api.xml:
UUID strings can contain zeroes, so the autogenerated conversion
functions don't work.
Daniel
Daniel Veillard [Thu, 23 Feb 2006 11:26:17 +0000 (11:26 +0000)]
* src/libvirt.c: fixing a bug before the release of 0.0.5
* python/generator.py python/libvir.c python/libvirt-python-api.xml:
also fixing the binding for getting a domain UUID
* python/tests/Makefile.am python/tests/uuid.py: added a test
for the new UUID API
Daniel
Daniel Veillard [Thu, 23 Feb 2006 10:13:55 +0000 (10:13 +0000)]
* include/libvirt.h[.in] src/libvirt.c src/xend_internal.[ch]
src/libvirt_sym.version: added virDomainLookupByUUID and
virDomainGetUUID to be able to use the persistant UUID names
* docs//*: rebuilt the docs following the API extension
Daniel
Daniel Veillard [Tue, 21 Feb 2006 14:15:32 +0000 (14:15 +0000)]
* Makefile.am: extended make tests to run those in docs/examples
* docs/examples/suspend.c docs/examples/*: added an example of
suspend/resume and regenerated
Daniel
Daniel Veillard [Tue, 21 Feb 2006 13:23:16 +0000 (13:23 +0000)]
* TODO: updated
* python/tests/Makefile.am: fix a small PYTHONPATH bug
* docs//*: fixed the xsl a bit for toc names, added doc for
the python bindings, regenerated
Daniel
Daniel Veillard [Mon, 20 Feb 2006 23:08:47 +0000 (23:08 +0000)]
* src/libvirt.c src/xend_internal.c src/xend_internal.h: move the
XML dump function around to make sure all entry points are centralized
in libvirt.c and also avoid doc generation troubles.
* docs/examples/Makefile.am docs/examples/index.py: fix the makefile
a bit.
* TODO: updated
* docs/format.html: added a description of the XML used for the
domains.
* docs//*: rebuilt
Daniel
Daniel Veillard [Mon, 20 Feb 2006 20:50:48 +0000 (20:50 +0000)]
* docs/examples/examples.xsl docs/examples/index.html
docs/site.xsl: integates the examples page in the web site
* docs//* : fixed generator and rebuilt the docs
* python/tests/basic.py python/tests/create.py: couple cleanups
Daniel
Daniel Veillard [Mon, 20 Feb 2006 17:22:16 +0000 (17:22 +0000)]
* TODO: updated
* include/libvirt.h include/libvirt.h.in: cleanup
* src/libvirt.c: remove debugging output
* src/xend_internal.c src/xml.c src/xml.h: reimplement
virDomainGetXMLDesc() based on xend interface, now work as user too.
Daniel
Daniel Veillard [Fri, 17 Feb 2006 13:18:57 +0000 (13:18 +0000)]
* python/tests/create.py: trying to make test more generic, but it's
difficult since it requires a system image
* src/libvirt.c src/xend_internal.c: fixed the shutdown API which
was broken due to a bad reason at the xend level.
Daniel
Daniel Veillard [Thu, 16 Feb 2006 22:50:52 +0000 (22:50 +0000)]
* configure.in src/Makefile.am: adding dependency to libxml2
* include/libvirt.h* src/libvirt.c src/xend_internal.[ch]
src/xml.[ch]: added XML parsing for Xen domain descriptions
needed for creates, plugged in a converter to s-exp and
xend call. Modified the virDomainCreateLinux() to reflect
that XML based description. Seems to work.
* python/tests/create.py: added a test case which seems to work
not tested much yet
* docs/*: regenerated
Daniel