diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-03-30 11:15:01 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2010-05-19 11:22:06 +0200 |
commit | 30c740201d1b111ca28e7881ddbcc91f259b8a11 (patch) | |
tree | 7d06286e3494dde3324bd0a28789375d1c152d6b /server/red_dispatcher.c | |
parent | 455cae7c74048da24e816aa3e00a3b62257f687d (diff) | |
download | spice-30c740201d1b111ca28e7881ddbcc91f259b8a11.tar.gz spice-30c740201d1b111ca28e7881ddbcc91f259b8a11.tar.xz spice-30c740201d1b111ca28e7881ddbcc91f259b8a11.zip |
VDInterface: redesign.
VDInterface has been renamed to SpiceBaseInterface. Dropped base_version
element, shlib versioning should be used instead. Dropped id element,
it is passed to spice_server_add_interface() instead. Now
SpiceBaseInterface has static information only, multiple interface
instances can share it.
Added SpiceBaseInstance struct for maintaining per-instance state
information. Adapted spice_server_{add,remove}_interface() functions
to the new world.
Diffstat (limited to 'server/red_dispatcher.c')
-rw-r--r-- | server/red_dispatcher.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/red_dispatcher.c b/server/red_dispatcher.c index b3cf8cd1..f7c66464 100644 --- a/server/red_dispatcher.c +++ b/server/red_dispatcher.c @@ -462,7 +462,7 @@ uint32_t red_dispatcher_qxl_ram_size() return qxl_info.qxl_ram_size; } -RedDispatcher *red_dispatcher_init(QXLInterface *qxl_interface) +RedDispatcher *red_dispatcher_init(QXLInterface *qxl_interface, int id) { RedDispatcher *dispatcher; int channels[2]; @@ -493,7 +493,7 @@ RedDispatcher *red_dispatcher_init(QXLInterface *qxl_interface) dispatcher = spice_new0(RedDispatcher, 1); dispatcher->channel = channels[0]; init_data.qxl_interface = dispatcher->qxl_interface = qxl_interface; - init_data.id = qxl_interface->base.id; + init_data.id = id; init_data.channel = channels[1]; init_data.pending = &dispatcher->pending; init_data.num_renderers = num_renderers; @@ -548,7 +548,7 @@ RedDispatcher *red_dispatcher_init(QXLInterface *qxl_interface) reds_channel = spice_new0(Channel, 1); reds_channel->type = SPICE_CHANNEL_DISPLAY; - reds_channel->id = qxl_interface->base.id; + reds_channel->id = id; reds_channel->link = red_dispatcher_set_peer; reds_channel->shutdown = red_dispatcher_shutdown_peer; reds_channel->migrate = red_dispatcher_migrate; @@ -557,7 +557,7 @@ RedDispatcher *red_dispatcher_init(QXLInterface *qxl_interface) cursor_channel = spice_new0(Channel, 1); cursor_channel->type = SPICE_CHANNEL_CURSOR; - cursor_channel->id = qxl_interface->base.id; + cursor_channel->id = id; cursor_channel->link = red_dispatcher_set_cursor_peer; cursor_channel->shutdown = red_dispatcher_shutdown_cursor_peer; cursor_channel->migrate = red_dispatcher_cursor_migrate; |