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:
Juergen Gross authored and Wei Liu committed 2020-10-08 12:47:59 +00:00
1 parent 5144222bcd
commit 90c9f9f4dd
12 files changed
+27 -31

No files matched your search

+3 -3
View File
@@ -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;
}
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.