zap CoreInterface->next()

Interfaces must be registered after spice_server_init().
The "next" callback is used to discover interfaces
registered before spice_server_init().  Which is a empty
list and thus pretty pointless.  Remove it.
This commit is contained in:
Gerd Hoffmann 2010-03-23 16:01:54 +01:00
parent 43caec519e
commit df95728bf0
2 changed files with 0 additions and 9 deletions

View File

@ -4958,8 +4958,6 @@ const char *version_string = VERSION;
static void do_spice_init(CoreInterface *core_interface)
{
VDInterface *interface = NULL;
red_printf("starting %s", version_string);
if (core_interface->base.base_version != VM_INTERFACE_VERSION) {
@ -4989,11 +4987,6 @@ static void do_spice_init(CoreInterface *core_interface)
red_error("key modifiers timer create failed");
}
if (core->next) {
while ((interface = core->next(core, interface))) {
interface_change_notifier(&reds, interface, VD_INTERFACE_ADDING);
}
}
if (core->register_change_notifiers) {
core->register_change_notifiers(core, &reds, interface_change_notifier);
}

View File

@ -71,8 +71,6 @@ typedef void (*timer_callback_t)(void *opaque);
struct CoreInterface {
VDInterface base;
VDInterface *(*next)(CoreInterface *core, VDInterface *prev);
VDObjectRef (*register_change_notifiers)(CoreInterface *core, void *opaque,
vd_interface_change_notifier_t in_notifier);
void (*unregister_change_notifiers)(CoreInterface *core, VDObjectRef notifier);