]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libvirt.h: consolidate typed parameter handling
authorEric Blake <eblake@redhat.com>
Tue, 17 May 2011 17:44:53 +0000 (11:44 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 18 May 2011 14:40:28 +0000 (08:40 -0600)
commit824dcaff786af4d712a34452ecb6de17a41d0218
treeb2982a8c504f727f62e00d3e493033547e62887d
parentf3cfc99e794bd77479878fc224c6581b61d57dbd
libvirt.h: consolidate typed parameter handling

The new type is identical to the three old types that it replaces,
and by creating a common type, this allows future patches to share
common code that manipulates typed parameters.

This change is backwards-compatible in API (recompilation works
without any edits) and ABI (an older client that has not been
recompiled uses the same layout) for code using only public
names; only code using private names (those beginning with _)
will have to adapt.

* include/libvirt/libvirt.h.in (virTypedParameterType)
(VIR_TYPED_PARAM_FIELD_LENGTH, _virTypedParameter): New enum,
macro, and type.
(virSchedParameter, virBlkioParameter, virMemoryParameter):
Rewrite in terms of a common type, while keeping all old public
names for backwards compatibility.
(struct _virSchedParameter, struct _virBlkioParameter)
(struct _virMemoryParameter): Delete - these are private names.
* python/generator.py (enum): Cope with the refactoring.
include/libvirt/libvirt.h.in
python/generator.py