mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
libxl: remove XS transaction from public API.
All external users pass 0 anyway so make the version of libxl_domain_rename which takes a transaction internal and provide an external facing function which does not expose a transaction. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
381c919a7c
commit
026bb0b5c0
6 files changed
+30
-20
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/******************************************************************************
|
||||
* xl.c
|
||||
*
|
||||
*
|
||||
* Copyright (c) 2010 Citrix Ltd.
|
||||
* Author: Gianni Tedesco
|
||||
*
|
||||
@@ -481,7 +481,7 @@ static PyObject *pyxl_domain_rename(XlObject *self, PyObject *args)
|
||||
int domid;
|
||||
if ( !PyArg_ParseTuple(args, "is|s", &domid, &new_name, &old_name) )
|
||||
return NULL;
|
||||
if ( libxl_domain_rename(&self->ctx, domid, old_name, new_name, 0) ) {
|
||||
if ( libxl_domain_rename(&self->ctx, domid, old_name, new_name) ) {
|
||||
PyErr_SetString(xl_error_obj, "cannot rename domain");
|
||||
return NULL;
|
||||
}
|
||||
|
||||