[Spice-devel] [PATCH 05/14] reds: Derive VDIPortReadBuf from RedPipeItem

Christophe Fergeau cfergeau at redhat.com
Tue Apr 12 08:37:04 UTC 2016


Hey,

On Mon, Apr 11, 2016 at 04:02:20PM -0500, Jonathon Jongsma wrote:
> On Thu, 2016-04-07 at 17:11 -0500, Jonathon Jongsma wrote:
> > From: Christophe Fergeau <cfergeau at redhat.com>
> > 
> > Since RedPipeItem is already refcounted, this allows to remove various
> > layers of ref/unref helpers from reds.c, and use the generic
> > red_pipe_item_{ref, unref} instead.
> 
> Hmm, I don't know if I like making this a RedPipeItem just to get the
> refcounting. It seems like it would be better to simply return an actual pipe
> item (e.g. AgentDataPipeItem) rather than VDIReadBuf from
> read_one_msg_from_device(). That would match the other char device
> implementations more closely as well...

Looks like a bigger change, but from a quick look it would probably make
more sense indeed.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160412/acf130b8/attachment.sig>


More information about the Spice-devel mailing list