[Spice-devel] [spice-server 02/10] Rework red_channel_on_output a bit

Christophe Fergeau cfergeau at redhat.com
Fri Feb 10 13:49:41 UTC 2017


On Fri, Feb 10, 2017 at 04:27:57AM -0500, Frediano Ziglio wrote:
> > 
> > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote:
> > 
> > Although I think it's a little bit unfortunate that we need to expose
> > another function in red-channel.h, it does seem to make more sense this
> > way. The 'opaque' variable is a RedChannelClient[1], it makes more
> > sense that this handler function is a client "method" rather than a
> > channel method.
> > 
> > [1] speaking of which, why is it opaque instead of a RedChannelClient*?
> > Maybe that will be addressed later in this series...
> > 
> > Acked-by: Jonathon Jongsma <jjongsma at redhat.com>
> > 
> 
> About exposing red_channel_on_output.
> The 2 classes are really coupled together. Why not adding a red-channel-private.h
> storing function used just for this coupling? We could also prefix the
> functions with underscore (or other way to distinguish).

Why not, though this could probably done in a separate commit as
red_channel_remove_client() and red_channel_get_core_interface() both
fall in that category. I'd also add methods which are only used by
RedChannel subclasses to that header.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170210/28a3e75e/attachment.sig>


More information about the Spice-devel mailing list