Commit Graph
49 Commits
Author SHA1 Message Date
Ewan Mellor 79a9f1f484 Rename the 3DNOW and 3DNOWEXT API constants to THREEDNOW, so that they may be
used directly as identifiers in bindings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 15:34:47 +00:00
Ewan Mellor 800c66b264 Treat <value> tags with no type tag inside as if they were strings (as required
by the XML-RPC spec).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 12:30:32 +00:00
Ewan Mellor d913c891b7 Added permissiveness for floats.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 12:29:26 +00:00
Ewan Mellor 5bb62448a5 Fix more enum demarshalling.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-15 11:33:50 +00:00
Ewan Mellor 7bdf0f5b26 Added a test for xen_vm_get_power_state.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-15 11:00:04 +00:00
jfehlig@jfehlig2.provo.novell.com 160ed4756b Fix VM.get_power_state API. On the xend side an integer representation of the power state was being returned instead of a string representation as specified by the XenAPI spec.
On the c-bindings side the marshalling code converts the string representation to an enum value.  A subsequent attempt to convert the enum from a string to an enum was causing a seg fault.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2006-12-13 18:06:48 -07:00
Ewan Mellor 1c253aa41e Updated test to match new booting arrangement.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-14 18:30:35 +00:00
Ewan Mellor 87221c6db2 Remove the boot-type implementation -- now replaced by the HVM and PV boot
configuration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-14 18:24:41 +00:00
Ewan Mellor 184500f7fc Implement new booting parameters for Xen-API, and backwards compatibility for
the old bootloader settings.

We now have two mutually exclusive config groups HVM and PV, with HVM/boot
and PV/{bootloader,kernel,ramdisk,args,bootloader_args}.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-14 18:24:14 +00:00
Ewan Mellor ca636dbc6e Have a 1GiB disk rather than 1MiB, for a slightly more sensible test.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-14 14:50:35 +00:00
Ewan Mellor 75e4e9bd32 Implement xen_vm_set_vcpus_number,
xen_vm_{add,remove}_vcpus_features_force{on,off}.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-09 17:16:52 +00:00
Ewan Mellor 37c5bee341 Fix capitalisation of on-wire calls for VM.set_platform_std_VGA and
VM.set_otherConfig.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-08 11:13:44 +00:00
Ewan Mellor 46d863fd0c Remove accidental double declaration of xen_vm_destroy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-08 11:06:28 +00:00
Ewan Mellor 2f1190118f Implement the VM.auto_power_on field.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-08 10:59:18 +00:00
Ewan Mellor 4d68cba9cf One more doc-comment update.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-08 10:57:14 +00:00
Ewan Mellor bf5a051721 Update doc-comments to match recent documentation tidy-ups.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-08 10:51:41 +00:00
Ewan Mellor 3dca648478 More capitalisation fixes.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-04 10:24:54 +00:00
Ewan Mellor 78bc404b6b With PERMISSIVE turned on, diagnose missing Enums and Bools, and improve the
diagnosis of missing structure values.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-04 10:20:56 +00:00
Ewan Mellor 4dc8c41b11 Update README to reflect moved library.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-01 13:09:30 +00:00
Ewan Mellor 91e35907b2 Link test/test_bindings against libxenapi in the new location.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-01 12:24:42 +00:00
Ewan Mellor ef7c4eec7b New modelling for consoles -- have them as separate classes attached to the
VM, much like the arrangements for devices.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 23:31:07 +00:00
Ewan Mellor f8cd45575d Add test_bindings back into the build -- it isn't integrated with the normal
targets, because it introduces an additional dependency (libcurl), but
make test/test_bindings does the right thing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 17:04:32 +00:00
jfehlig@jfehlig2.provo.novell.com 0dc1af83bf Add libxen to overall xen build via a config option in Config.mk.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2006-11-22 14:25:07 -07:00
Ewan Mellor 07d94e438d Allow the C bindings to be more permissive when a structure is missing some
entries.  Complaining is just slowing development down when the server and
clients get out of sync.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 16:22:22 +00:00
Ewan Mellor c2739fc6af Rename abstract_value.double_val -> float_val. All the other names match the
abstract type names in the doc, so this one should too.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-09 11:40:28 +00:00
Ewan Mellor b17549f692 Added a destroy method for each object. Based upon the code for VM.destroy
by Jim Fehlig.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-09 11:37:35 +00:00
Ewan Mellor 312e1b1845 More capitalisation fixes -- the on-wire method name should match the
documentation in terms of capitalisation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-09 11:23:09 +00:00
Ewan Mellor 1f926835c3 Minor tidying.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-09 11:11:38 +00:00
Ewan Mellor 9b91aeb6ad Replace uses of the typename (e.g. xen_host) where its used as a variable name.
This is an unusual style, and out of sync with the rest of the library.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-09 11:02:48 +00:00
jfehlig@jfehlig2.provo.novell.com 0d869553e3 Add support for VM.destroy RPC in libxen.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2006-11-07 18:14:16 -07:00
kfraser@localhost.localdomain 93f56e1536 [XENAPI] Add 'image' field to xen_vbd_record, allowing an image to be
associated with the vbd. xend supports this field and the client
bindings need it to support existing images that are not under
control of an SR.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2006-11-07 10:46:03 +00:00
Ewan Mellor 65488fbb18 uint64_t replaced with int64_t everywhere.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 13:30:21 +01:00
Ewan Mellor e9a8f0e261 The get_by_name_label functions return a set, not a singleton, because names
are not guaranteed to be unique.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 12:04:08 +01:00
Ewan Mellor 55923ae058 Fix marshalling to and from record_opts.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 12:00:02 +01:00
Ewan Mellor 88e408ccda Fix freeing of records, when the given pointer is NULL.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 11:54:05 +01:00
Ewan Mellor 07b95037c7 Fix the handling of sets in the interface -- expecting a pointer to X to serve
as a list of them was too hopeful -- that's what the set structures are for.

Based upon a patch by Jim Fehlig.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 11:50:35 +01:00
Ewan Mellor 4d00dc893b The on-wire names for the fields should be exactly as documented, including
case.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 11:41:55 +01:00
Ewan Mellor eb95231af8 Tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 11:21:35 +01:00
Ewan Mellor 98fce5e002 Tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 11:20:47 +01:00
Ewan Mellor 3de924f62e Remove VTPM-related values, now obsolete.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-27 09:52:49 +01:00
Ewan Mellor 160e3425fc Fix VTPM bindings -- ints in the model are uint64_t at the C binding level.
VM's, being referenced from the VTPM, have a backreferring set.  Remove the
implementation of the old, dead VTPM-related fields on VM.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 16:02:49 +01:00
Ewan Mellor 75fc47c34f Implement new PIF-based network model, and match movement of I/O-statistics.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:59:51 +01:00
Ewan Mellor 90a38027f4 Implement VDI.resize message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:57:29 +01:00
Ewan Mellor 6e30095293 Implement HostCPU.{vendor,speed,modelname}.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:56:44 +01:00
Ewan Mellor 4809ab6f09 Implement new VMX feature flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:53:31 +01:00
Ewan Mellor 947025bc2f C bindings adding some basic vTPM extensions to the API that
make its handling similar to that of VBD etc.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-25 17:30:17 +01:00
Ewan Mellor 8e9710138a The session class has a lower-case S -- fix the C bindings to match.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-25 16:06:29 +01:00
ewan@linford.intra 92ad3cb65a Give our test VM a name with no space (Xend does not allow this at the moment).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-07 18:22:48 +01:00
ewan@linford.intra 273a416d03 Import libxen-src-0.4.3-2.tar.bz2.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-07 18:22:09 +01:00