[Spice-devel] [PATCH 04/35] zap CoreInterface->(un)register_change_notifiers()

Gerd Hoffmann kraxel at redhat.com
Wed May 12 04:31:58 PDT 2010


spice_server_add_interface() and spice_server_remove_interface()
can be used instead.
---
 server/reds.c         |    4 ----
 server/vd_interface.h |    4 ----
 2 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/server/reds.c b/server/reds.c
index f62a127..dd8034c 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -4987,10 +4987,6 @@ static void do_spice_init(CoreInterface *core_interface)
         red_error("key modifiers timer create failed");
     }
 
-    if (core->register_change_notifiers) {
-        core->register_change_notifiers(core, &reds, interface_change_notifier);
-    }
-
 #ifdef RED_STATISTICS
     int shm_name_len = strlen(SPICE_STAT_SHM_NAME) + 20;
     int fd;
diff --git a/server/vd_interface.h b/server/vd_interface.h
index 35d006b..0040ede 100644
--- a/server/vd_interface.h
+++ b/server/vd_interface.h
@@ -71,10 +71,6 @@ typedef void (*timer_callback_t)(void *opaque);
 struct CoreInterface {
     VDInterface base;
 
-    VDObjectRef (*register_change_notifiers)(CoreInterface *core, void *opaque,
-                                             vd_interface_change_notifier_t in_notifier);
-    void (*unregister_change_notifiers)(CoreInterface *core, VDObjectRef notifier);
-
     VDObjectRef (*create_timer)(CoreInterface *core, timer_callback_t, void *opaue);
     void (*arm_timer)(CoreInterface *core, VDObjectRef timer, uint32_t ms);
     void (*disarm_timer)(CoreInterface *core, VDObjectRef timer);
-- 
1.6.6.1



More information about the Spice-devel mailing list