|
From: | Gerd Hoffmann |
Subject: | [Qemu-devel] Re: [PATCH 5/5] iohandlers: Add IOHandlerOps struct |
Date: | Thu, 13 Jan 2011 15:02:37 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Red Hat/3.1.7-3.el6_0 Thunderbird/3.1.7 |
Hi,
+ ioh->ops.fd_read_poll = ops->fd_read_poll; + ioh->ops.fd_read = ops->fd_read; + ioh->ops.fd_write = ops->fd_write;
You can write this as "ioh->ops = *ops" btw.I guess the long-term plan (to be committed after killing the last user of the old interface) is to store a pointer to the ops struct instead of copying it?
cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |