Re: [Spice-devel] [PATCH 03/14] Introduce simple RedPipeItem class

2016-04-12 Thread Christophe Fergeau
On Mon, Apr 11, 2016 at 06:41:19AM -0400, Frediano Ziglio wrote: > > diff --git a/server/red-pipe-item.c b/server/red-pipe-item.c > > new file mode 100644 > > index 000..a9ebfda > > --- /dev/null > > +++ b/server/red-pipe-item.c > > @@ -0,0 +1,65 @@ > > +/* -*- Mode: C; c-basic-offset: 4; inden

Re: [Spice-devel] [PATCH 03/14] Introduce simple RedPipeItem class

2016-04-11 Thread Frediano Ziglio
> > From: Christophe Fergeau > > This is similar to PipeItem (which is a type id + a RingItem linked list > member), except that it's refcounted. A user-defined callback is called > when the refcount drops to 0. > Refcounted is open coded for several classes deriving from PipeItem, so > this bas

Re: [Spice-devel] [PATCH 03/14] Introduce simple RedPipeItem class

2016-04-10 Thread Christophe Fergeau
On Fri, Apr 08, 2016 at 03:13:48PM -0500, Jonathon Jongsma wrote: > On Thu, 2016-04-07 at 17:11 -0500, Jonathon Jongsma wrote: > > From: Christophe Fergeau > > > > This is similar to PipeItem (which is a type id + a RingItem linked list > > member), except that it's refcounted. A user-defined cal

Re: [Spice-devel] [PATCH 03/14] Introduce simple RedPipeItem class

2016-04-08 Thread Jonathon Jongsma
On Thu, 2016-04-07 at 17:11 -0500, Jonathon Jongsma wrote: > From: Christophe Fergeau > > This is similar to PipeItem (which is a type id + a RingItem linked list > member), except that it's refcounted. A user-defined callback is called > when the refcount drops to 0. It's not so much "like" a P

[Spice-devel] [PATCH 03/14] Introduce simple RedPipeItem class

2016-04-07 Thread Jonathon Jongsma
From: Christophe Fergeau This is similar to PipeItem (which is a type id + a RingItem linked list member), except that it's refcounted. A user-defined callback is called when the refcount drops to 0. Refcounted is open coded for several classes deriving from PipeItem, so this base class will help