diff options
author | David 'Digit' Turner <digit@android.com> | 2011-03-17 14:57:51 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-04-11 18:08:11 +0200 |
commit | f9e333ade2529f257ced6bcff8e5824cb07eacf9 (patch) | |
tree | c3ea65717a284ae744764b4ecf8c5b745ea3415d /android/protocol/fb-updates-proxy.c | |
parent | 2086c639648ccecc9081705a279249ce939d818b (diff) | |
download | external_qemu-f9e333ade2529f257ced6bcff8e5824cb07eacf9.zip external_qemu-f9e333ade2529f257ced6bcff8e5824cb07eacf9.tar.gz external_qemu-f9e333ade2529f257ced6bcff8e5824cb07eacf9.tar.bz2 |
Simplify async utils by removing extra LoopIo parameter.
This patch removes the LoopIo parameter from asyncReader_run() by
storing the initial pointer passed to asyncReader_init() inside the
object itself.
Same treatment is performed for:
- AsyncReader
- AsyncWriter
- AsyncLineReader
- AsyncConnector
- AsyncConsoleConnect
Change-Id: Ic74b817e4c326230ca1d38b3a5d8c4790c4f90c1
Diffstat (limited to 'android/protocol/fb-updates-proxy.c')
-rw-r--r-- | android/protocol/fb-updates-proxy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/android/protocol/fb-updates-proxy.c b/android/protocol/fb-updates-proxy.c index ec7414d..c1b431e 100644 --- a/android/protocol/fb-updates-proxy.c +++ b/android/protocol/fb-updates-proxy.c @@ -156,7 +156,7 @@ _proxyFb_io_write(ProxyFramebuffer* proxy_fb) FBUpdateNotify* current_update = proxy_fb->fb_update_head; // Lets continue writing of the current notification. const AsyncStatus status = - asyncWriter_write(&proxy_fb->fb_update_writer, &proxy_fb->io); + asyncWriter_write(&proxy_fb->fb_update_writer); switch (status) { case ASYNC_COMPLETE: // Done with the current update. Move on to the next one. @@ -202,7 +202,7 @@ _proxyFb_io_read(ProxyFramebuffer* proxy_fb) // Read the request header. DisplaySurface* dsu; const AsyncStatus status = - asyncReader_read(&proxy_fb->fb_req_reader, &proxy_fb->io); + asyncReader_read(&proxy_fb->fb_req_reader); switch (status) { case ASYNC_COMPLETE: // Request header is received @@ -320,7 +320,7 @@ proxyFb_update(void* opaque, int x, int y, int w, int h) asyncWriter_init(&proxy_fb->fb_update_writer, &proxy_fb->fb_update_head->message, proxy_fb->fb_update_head->message_size, &proxy_fb->io); - status = asyncWriter_write(&proxy_fb->fb_update_writer, &proxy_fb->io); + status = asyncWriter_write(&proxy_fb->fb_update_writer); switch (status) { case ASYNC_COMPLETE: fbupdatenotify_delete(descr); |