Re: [PATCH spice-gtk] channel: rely on couroutine instead of channel state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 11/30/2012 09:17 PM, Marc-André Lureau wrote:


On Fri, Nov 30, 2012 at 9:12 PM, Marc-André Lureau <marcandre.lureau@xxxxxxxxx <mailto:marcandre.lureau@xxxxxxxxx>> wrote:

          spice_channel_send_link(channel);
    +    spice_channel_recv_link_hdr(channel);
    +    spice_channel_recv_link_msg(channel);
    +    spice_channel_recv_auth(channel);


At this point I am tempted to make just one function channel_handle_link(). The current function splitting is not really necessary, and looks weird: the client actually also sends messages in those functions...

Sounds like a nice cleanup to me. Or maybe further
split the recv_ functions into a recv_ and send_next_bit
parts and then have a channel_handle_link()
calling all the send_ and recv_ parts?  I think that might
end up more readable then a single large function and
the compiler should inline it all anyways (since it is all
called from only 1 place).

Regards,

Hans
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]