Re: [Spice-devel] [PATCH spice-gtk 02/10] Add SPICE_DISABLE_CHANNELS

2013-09-09 Thread Yonit Halperin
ack. Notice that basically handle_msg of all the channels does the same, expect it uses different msg handlers. It would have been cleaner to use one handle_msg routine, and different msg handlers. Then, instead of checking disable_channel_msg for each msg, we could just set the msg_handlers

[Spice-devel] [PATCH spice-gtk 02/10] Add SPICE_DISABLE_CHANNELS

2013-09-08 Thread Marc-André Lureau
Allow to disable selectively channels, mainly used for testing, ex: SPICE_DISABLE_CHANNELS=display spicy-stats -p 12345 --- gtk/channel-display.c| 4 ++-- gtk/spice-channel-priv.h | 2 ++ gtk/spice-channel.c | 14 -- 3 files changed, 16 insertions(+), 4 deletions(-) diff