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:
Ian Campbell committed 2011-03-23 15:55:13 +00:00
1 parent 381c919a7c
commit 026bb0b5c0
6 files changed
+30 -20

No files matched your search

+2 -2
View File
@@ -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;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.