mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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>
This commit is contained in:
1 parent
1d2a876665
commit
9dcc52ddb6
13 files changed
+95
-95
No files matched your search
@@ -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 = ''
|
||||
|
||||
|
||||
@@ -246,7 +246,7 @@ int attrib__libxl_hwcap_set(PyObject *v, libxl_hwcap *pptr)
|
||||
int attrib__libxl_key_value_list_set(PyObject *v, libxl_key_value_list *pptr)
|
||||
{
|
||||
if ( *pptr ) {
|
||||
libxl_key_value_list_destroy(pptr);
|
||||
libxl_key_value_list_dispose(pptr);
|
||||
*pptr = NULL;
|
||||
}
|
||||
if ( v == Py_None )
|
||||
|
||||