aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/idl.txt
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-04-20 17:13:07 +0100
committerIan Campbell <ian.campbell@citrix.com>2011-04-20 17:13:07 +0100
commit8b403a1dfdbd5bb06abbfca927097037a9ef8280 (patch)
treed0b377d65ee8923f617c7b2dd88e2d9ebf260b12 /tools/libxl/idl.txt
parent2da839263c4dd02b1433115583b8771b6d0fff36 (diff)
downloadxen-8b403a1dfdbd5bb06abbfca927097037a9ef8280.tar.gz
xen-8b403a1dfdbd5bb06abbfca927097037a9ef8280.tar.bz2
xen-8b403a1dfdbd5bb06abbfca927097037a9ef8280.zip
tools: libxl: add an Enumeration type to the IDL
The IDL requires a specific value for each enumerate, this make it much easier to avoid (or at least track) ABI changes since they must now be explicit. I believe I have used the same values as would have been chosen previoulsy but have not confirmed. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxl/idl.txt')
-rw-r--r--tools/libxl/idl.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/libxl/idl.txt b/tools/libxl/idl.txt
index c691051393..9048828e77 100644
--- a/tools/libxl/idl.txt
+++ b/tools/libxl/idl.txt
@@ -82,6 +82,30 @@ libxltype.Reference
Complex type-Classes
--------------------
+libxltype.Enumeration
+
+ A class representing an enumeration (named integer values).
+
+ The values are available in the list Enumeration.values. Each
+ element in the list is of type libxltype.EnumerationValue.
+
+ Each EnumerationValue has the following properties:
+
+ EnumerationValue.enum Reference to containing Enumeration
+ EnumerationValue.name The C name of this value, including
+ the namespace and typename of the
+ containing Enumeration (e.g.
+ "LIBXL_FOOENUM_VALUE")
+ EnumerationValue.rawname The C name of this value, excluding
+ the namespace but including the
+ typename of the containing
+ Enumeration (e.g. "FOOENUM_VALUE")
+ EnumerationValue.valuename The name of this value, excluding the
+ name of the containing Enumeration
+ and any namespace (e.g. "VALUE")
+ EnumerationValue.value The integer value associated with this name.
+ EnumerationValue.comment A free text comment which describes the member.
+
libxltype.Aggregate
Base class for type-Classes which contain a number of other types