[Spice-devel] [PATCH 17/35] new watch api: kill old api
Gerd Hoffmann
kraxel at redhat.com
Wed May 12 04:32:11 PDT 2010
---
server/reds.c | 2 --
server/vd_interface.h | 5 -----
2 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/server/reds.c b/server/reds.c
index 095e644..9feaf4e 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -494,8 +494,6 @@ static void __reds_release_link(RedLinkInfo *link)
if (link->peer->watch) {
core->watch_remove(link->peer->watch);
link->peer->watch = NULL;
- } else {
- core->set_file_handlers(core, link->peer->socket, NULL, NULL, NULL);
}
free(link->link_mess);
BN_free(link->tiTicketing.bn);
diff --git a/server/vd_interface.h b/server/vd_interface.h
index a370431..2bb3bcc 100644
--- a/server/vd_interface.h
+++ b/server/vd_interface.h
@@ -82,11 +82,6 @@ struct CoreInterface {
void (*disarm_timer)(CoreInterface *core, VDObjectRef timer);
void (*destroy_timer)(CoreInterface *core, VDObjectRef timer);
- int (*set_file_handlers)(CoreInterface *core, int fd,
- void (*on_read)(void *),
- void (*on_write)(void *),
- void *opaque);
-
SpiceWatch *(*watch_add)(int fd, int event_mask, SpiceWatchFunc func, void *opaque);
void (*watch_update_mask)(SpiceWatch *watch, int event_mask);
void (*watch_remove)(SpiceWatch *watch);
--
1.6.6.1
More information about the Spice-devel
mailing list