Re: [PATCH libinput 1/2] Make context reference counted

2014-06-23 Thread Peter Hutterer
On Tue, Jun 24, 2014 at 01:20:47AM +0300, Ran Benita wrote: > On Mon, Jun 23, 2014 at 11:56:41PM +0200, Jonas Ådahl wrote: > > Instead of only allowing one owner keeping a libinput context alive, > > make context reference counted, replacing libinput_destroy() with > > libinput_unref() while adding

Re: [PATCH libinput 1/2] Make context reference counted

2014-06-23 Thread Ran Benita
On Mon, Jun 23, 2014 at 11:56:41PM +0200, Jonas Ådahl wrote: > Instead of only allowing one owner keeping a libinput context alive, > make context reference counted, replacing libinput_destroy() with > libinput_unref() while adding another function libinput_ref(). > > Even though there might not b

[PATCH libinput 1/2] Make context reference counted

2014-06-23 Thread Jonas Ådahl
Instead of only allowing one owner keeping a libinput context alive, make context reference counted, replacing libinput_destroy() with libinput_unref() while adding another function libinput_ref(). Even though there might not be any current use cases, it doesn't mean we should hard code this usage