[Spice-devel] [PATCH spice-common] Marshaller: rename _add_ref() to _add_by_ref()
Christophe Fergeau
cfergeau at redhat.com
Tue Dec 6 16:03:54 UTC 2016
On Tue, Dec 06, 2016 at 09:33:51AM -0600, Jonathon Jongsma wrote:
> On Tue, 2016-12-06 at 10:49 +0100, Christophe Fergeau wrote:
> > On Mon, Dec 05, 2016 at 04:19:04PM -0600, Jonathon Jongsma wrote:
> > >
> > > The spice_marshaller_add_ref() family of functions is confusing
> > > since it
> > > sounds like you're incrementing a reference on the marshaller. What
> > > it
> > > is actually doing is adding a data buffer to the marshaller by
> > > reference
> > > rather than by value. Changing the function names to _add_by_ref()
> > > makes
> > > this clearer.
> > >
> > > The old functions are deprecated and are simply inline functions
> > > that
> > > call the new functions.
> >
> > Do we have to keep the old ones?
> >
> > Christophe
>
>
> probably not if we update all of the repositories that use the old
> function. But I figured it was kinder to do it this way for at least a
> little while to ease the transition.
Ok, fine with me,
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
-------------- 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/20161206/d6729b1d/attachment.sig>
More information about the Spice-devel
mailing list