diff options
author | Alon Levy <alevy@redhat.com> | 2011-07-06 02:12:19 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-07-20 16:00:19 +0300 |
commit | 096f49afbf4e83ccee80f58479b3ff05bd355660 (patch) | |
tree | 7f8df1ea290e3ed23b0a34a82ae0f22aaf8cbc38 /server/red_parse_qxl.c | |
parent | 4db8f5efdda91acf3b94c6c104d48438f6f4e85d (diff) | |
download | spice-096f49afbf4e83ccee80f58479b3ff05bd355660.tar.gz spice-096f49afbf4e83ccee80f58479b3ff05bd355660.tar.xz spice-096f49afbf4e83ccee80f58479b3ff05bd355660.zip |
server: add async io support
The new _ASYNC io's in qxl_dev listed at the end get six new api
functions, and an additional callback function "async_complete". When
the async version of a specific io is used, completion is notified by
calling async_complete, and no READY message is written or expected by
the dispatcher.
update_area has been changed to push QXLRects to the worker thread, where
the conversion to SpiceRect takes place.
A cookie has been added to each async call to QXLWorker, and is passed back via
async_complete.
Added api:
QXLWorker:
update_area_async
add_memslot_async
destroy_surfaces_async
destroy_primary_surface_async
create_primary_surface_async
destroy_surface_wait_async
QXLInterface:
async_complete
Diffstat (limited to 'server/red_parse_qxl.c')
-rw-r--r-- | server/red_parse_qxl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/red_parse_qxl.c b/server/red_parse_qxl.c index 258a541d..7737c047 100644 --- a/server/red_parse_qxl.c +++ b/server/red_parse_qxl.c @@ -148,7 +148,7 @@ static void red_get_point16_ptr(SpicePoint16 *red, QXLPoint16 *qxl) red->y = qxl->y; } -void red_get_rect_ptr(SpiceRect *red, QXLRect *qxl) +void red_get_rect_ptr(SpiceRect *red, const QXLRect *qxl) { red->top = qxl->top; red->left = qxl->left; |