summaryrefslogtreecommitdiffstats
path: root/server/snd_worker.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-03-30 11:15:01 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-05-19 11:22:06 +0200
commit30c740201d1b111ca28e7881ddbcc91f259b8a11 (patch)
tree7d06286e3494dde3324bd0a28789375d1c152d6b /server/snd_worker.c
parent455cae7c74048da24e816aa3e00a3b62257f687d (diff)
downloadspice-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/snd_worker.c')
-rw-r--r--server/snd_worker.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/snd_worker.c b/server/snd_worker.c
index d5f5f377..afffb005 100644
--- a/server/snd_worker.c
+++ b/server/snd_worker.c
@@ -142,7 +142,7 @@ typedef struct PlaybackChannel {
struct SndWorker {
Channel base;
- VDInterface *interface;
+ SpiceBaseInterface *interface;
SndChannel *connection;
SndWorker *next;
};
@@ -1192,7 +1192,7 @@ static void remove_worker(SndWorker *worker)
red_printf("not found");
}
-static SndWorker *find_worker(VDInterface *interface)
+static SndWorker *find_worker(SpiceBaseInterface *interface)
{
SndWorker *worker = workers;
while (worker) {
@@ -1242,7 +1242,7 @@ void snd_attach_record(RecordInterface *interface)
reds_register_channel(&record_worker->base);
}
-static void snd_detach_common(VDInterface *interface)
+static void snd_detach_common(SpiceBaseInterface *interface)
{
SndWorker *worker = find_worker(interface);