tools/python/genwrap.py | 2 +-
tools/python/xen/lowlevel/xl/xl.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
# HG changeset patch
# User Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
# Date 1291900579 0
# Node ID 521af80c82bb6fc8e4403bbe2313b3a8b3c78841
# Parent 0e64db4b86138afcf49d7f2273fad4af5e7da997
pyxl: Allow all xl types to be used as base classes
Signed-off-by: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
diff -r 0e64db4b8613 -r 521af80c82bb tools/python/genwrap.py
--- a/tools/python/genwrap.py Thu Dec 09 13:14:55 2010 +0000
+++ b/tools/python/genwrap.py Thu Dec 09 13:16:19 2010 +0000
@@ -148,7 +148,7 @@ static PyTypeObject Py%s_Type= {
NULL, /* tp_getattro */
NULL, /* tp_setattro */
NULL, /* tp_as_buffer */
- Py_TPFLAGS_DEFAULT, /* tp_flags */
+ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */
"%s", /* tp_doc */
NULL, /* tp_traverse */
NULL, /* tp_clear */
diff -r 0e64db4b8613 -r 521af80c82bb tools/python/xen/lowlevel/xl/xl.c
--- a/tools/python/xen/lowlevel/xl/xl.c Thu Dec 09 13:14:55 2010 +0000
+++ b/tools/python/xen/lowlevel/xl/xl.c Thu Dec 09 13:16:19 2010 +0000
@@ -604,7 +604,7 @@ static PyTypeObject PyXlType = {
NULL, /* tp_getattro */
NULL, /* tp_setattro */
NULL, /* tp_as_buffer */
- Py_TPFLAGS_DEFAULT, /* tp_flags */
+ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */
"libxenlight connection", /* tp_doc */
NULL, /* tp_traverse */
NULL, /* tp_clear */
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|