aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python/genwrap.py
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-10-18 10:35:55 +0100
committerIan Campbell <ian.campbell@citrix.com>2011-10-18 10:35:55 +0100
commit9dcc52ddb640328147d58ddf53241ad9617c57de (patch)
tree228d2298a7a6e8786e55ae1e50ed47ec9739a856 /tools/python/genwrap.py
parent1d2a87666556e7c3d483ab62f9159dc36bbf6614 (diff)
downloadxen-9dcc52ddb640328147d58ddf53241ad9617c57de.tar.gz
xen-9dcc52ddb640328147d58ddf53241ad9617c57de.tar.bz2
xen-9dcc52ddb640328147d58ddf53241ad9617c57de.zip
libxl: idl: use "dispose" rather than "destroy" for function to free IDL types
Destroy is an overloaded term which would commonly like to be used for actual destructive operations, such as destroying a domain etc. Dispose isn't a great term but it does the job. 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/python/genwrap.py')
-rw-r--r--tools/python/genwrap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/python/genwrap.py b/tools/python/genwrap.py
index af8d6465ff..d0c193d26f 100644
--- a/tools/python/genwrap.py
+++ b/tools/python/genwrap.py
@@ -100,8 +100,8 @@ def py_attrib_set(ty, f):
def py_object_def(ty):
l = []
- if ty.destructor_fn is not None:
- dtor = ' %s(&self->obj);\n'%ty.destructor_fn
+ if ty.dispose_fn is not None:
+ dtor = ' %s(&self->obj);\n'%ty.dispose_fn
else:
dtor = ''