[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 5/5] iohandlers: Add IOHandlerOps struct
From: |
Amit Shah |
Subject: |
[Qemu-devel] Re: [PATCH 5/5] iohandlers: Add IOHandlerOps struct |
Date: |
Thu, 13 Jan 2011 19:39:49 +0530 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On (Thu) Jan 13 2011 [15:02:37], Gerd Hoffmann wrote:
> 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?
Yes, that's what I have in mind.
Amit
- [Qemu-devel] Re: [PATCH 2/5] iohandlers: Introduce assign_fd_handlers() and remove_fd_handlers, (continued)
[Qemu-devel] [PATCH 4/5] iohandlers: Enable an iohandler only if the associated handler exists, Amit Shah, 2011/01/13
[Qemu-devel] [PATCH 5/5] iohandlers: Add IOHandlerOps struct, Amit Shah, 2011/01/13
[Qemu-devel] Re: [PATCH 0/5] iohandlers: Add support for enabling/disabling individual handlers, Gerd Hoffmann, 2011/01/13