Re: [Spice-devel] [PATCH 4/7] Use memcpy call in red_channel_create

2012-02-17 Thread Alon Levy
On Thu, Feb 16, 2012 at 11:30:10PM -0600, Dan McGee wrote: > Rather than assign the callbacks one-by-one, we can just memcpy the > struct into the one we have allocated in our RedChannel object, which is > much more efficient, not to mention future-proof when more callbacks are > added. ACK. > >

[Spice-devel] [PATCH 4/7] Use memcpy call in red_channel_create

2012-02-16 Thread Dan McGee
Rather than assign the callbacks one-by-one, we can just memcpy the struct into the one we have allocated in our RedChannel object, which is much more efficient, not to mention future-proof when more callbacks are added. Signed-off-by: Dan McGee --- server/red_channel.c |9 + 1 files