tools/libxl/libxltypes.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
# HG changeset patch
# User Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
# Date 1294761669 0
# Node ID 3bbba45fac5c7f614d75076aaf3e567799b2b4a7
# Parent 9c57b1622bbcc6252e59d18dca5e33673d6fc236
xl: Implement enum types in IDL
Signed-off-by: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
diff -r 9c57b1622bbc -r 3bbba45fac5c tools/libxl/libxltypes.py
--- a/tools/libxl/libxltypes.py Tue Jan 11 16:01:08 2011 +0000
+++ b/tools/libxl/libxltypes.py Tue Jan 11 16:01:09 2011 +0000
@@ -44,6 +44,10 @@ class Number(Builtin):
self.signed = kwargs['signed']
Builtin.__init__(self, ctype, **kwargs)
+class Enum(Number):
+ def __init__(self, w, **kwargs):
+ Number.__init__(self, 'enum %s'%w, **kwargs)
+
class UInt(Number):
def __init__(self, w, **kwargs):
kwargs.setdefault('namespace', None)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|