[Qemu-devel] Re: [PATCH 5/5] iohandlers: Add IOHandlerOps struct

2011-01-13 Thread Amit Shah
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

[Qemu-devel] Re: [PATCH 5/5] iohandlers: Add IOHandlerOps struct

2011-01-13 Thread Gerd Hoffmann
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