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

Gerd Hoffmann kraxel at redhat.com
Mon Mar 29 08:08:40 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 09234c8..3d73497 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -5019,10 +5019,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 42a011c..8adbcdb 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