[Spice-devel] [PATCH 17/18] new watch api: kill old api
Gerd Hoffmann
kraxel at redhat.com
Mon Mar 29 08:08:53 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 969f96a..1df575d 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -492,8 +492,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 3ae4ce9..f69bf35 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