mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools: drop all deprecated usages of xs_*_open() and friends in tools
Switch all usages of xs_daemon_open*() and xs_domain_open() to use xs_open() instead. While at it switch xs_daemon_close() users to xs_close(). Signed-off-by: Juergen Gross <jgross@suse.com> Acked-by: Wei Liu <wl@xen.org>
This commit is contained in:
1 parent
5144222bcd
commit
90c9f9f4dd
12 files changed
+27
-31
No files matched your search
@@ -791,7 +791,7 @@ static PyObject *xspy_close(XsHandle *self)
|
||||
PySequence_SetItem(self->watches, i, Py_None);
|
||||
}
|
||||
|
||||
xs_daemon_close(xh);
|
||||
xs_close(xh);
|
||||
self->xh = NULL;
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
@@ -985,7 +985,7 @@ xshandle_init(XsHandle *self, PyObject *args, PyObject *kwds)
|
||||
&readonly))
|
||||
goto fail;
|
||||
|
||||
self->xh = (readonly ? xs_daemon_open_readonly() : xs_daemon_open());
|
||||
self->xh = xs_open(0);
|
||||
if (!self->xh)
|
||||
goto fail;
|
||||
|
||||
@@ -999,7 +999,7 @@ xshandle_init(XsHandle *self, PyObject *args, PyObject *kwds)
|
||||
static void xshandle_dealloc(XsHandle *self)
|
||||
{
|
||||
if (self->xh) {
|
||||
xs_daemon_close(self->xh);
|
||||
xs_close(self->xh);
|
||||
self->xh = NULL;
|
||||
}
|
||||
|
||||
|
||||