mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
update xs_transaction_t to be a plain u32 integer instead of a fake pointer.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
This commit is contained in:
1 parent
53ed6896f3
commit
d9014bb4aa
14 files changed
+39
-47
No files matched your search
@@ -132,7 +132,7 @@ static PyObject *xspy_write(XsHandle *self, PyObject *args)
|
||||
if (!PyArg_ParseTuple(args, arg_spec, &thstr, &path, &data, &data_n))
|
||||
return NULL;
|
||||
|
||||
th = (xs_transaction_t)strtoul(thstr, NULL, 16);
|
||||
th = strtoul(thstr, NULL, 16);
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
result = xs_write(xh, th, path, data, data_n);
|
||||
@@ -264,7 +264,7 @@ static PyObject *xspy_get_permissions(XsHandle *self, PyObject *args)
|
||||
if (!PyArg_ParseTuple(args, arg_spec, &thstr, &path))
|
||||
return NULL;
|
||||
|
||||
th = (xs_transaction_t)strtoul(thstr, NULL, 16);
|
||||
th = strtoul(thstr, NULL, 16);
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
perms = xs_get_permissions(xh, th, path, &perms_n);
|
||||
@@ -320,7 +320,7 @@ static PyObject *xspy_set_permissions(XsHandle *self, PyObject *args)
|
||||
if (!PyArg_ParseTuple(args, "ssO", &thstr, &path, &perms))
|
||||
goto exit;
|
||||
|
||||
th = (xs_transaction_t)strtoul(thstr, NULL, 16);
|
||||
th = strtoul(thstr, NULL, 16);
|
||||
|
||||
if (!PyList_Check(perms)) {
|
||||
PyErr_SetString(PyExc_RuntimeError, "perms must be a list");
|
||||
@@ -519,7 +519,7 @@ static PyObject *xspy_transaction_start(XsHandle *self)
|
||||
th = xs_transaction_start(xh);
|
||||
Py_END_ALLOW_THREADS
|
||||
|
||||
if (th == NULL) {
|
||||
if (th == XBT_NULL) {
|
||||
PyErr_SetFromErrno(PyExc_RuntimeError);
|
||||
return NULL;
|
||||
}
|
||||
@@ -556,7 +556,7 @@ static PyObject *xspy_transaction_end(XsHandle *self, PyObject *args,
|
||||
&thstr, &abort))
|
||||
return NULL;
|
||||
|
||||
th = (xs_transaction_t)strtoul(thstr, NULL, 16);
|
||||
th = strtoul(thstr, NULL, 16);
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
result = xs_transaction_end(xh, th, abort);
|
||||
@@ -740,7 +740,7 @@ static int parse_transaction_path(XsHandle *self, PyObject *args,
|
||||
if (!PyArg_ParseTuple(args, "ss", &thstr, path))
|
||||
return 0;
|
||||
|
||||
*th = (xs_transaction_t)strtoul(thstr, NULL, 16);
|
||||
*th = strtoul(thstr, NULL, 16);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||