Re: [systemd-devel] [PATCH] libabc: Make things hold a reference to their context

2015-02-03 Thread Kay Sievers
On Mon, Dec 8, 2014 at 10:12 PM, Josh Triplett wrote: > The sample libabc includes functions to get a "thing", as a sample > sub-object of the overall library context. Each "thing" has a reference > to the parent library context, and a function to return that reference. > Given that, abc_thing_ne

[systemd-devel] [PATCH] libabc: Make things hold a reference to their context

2014-12-08 Thread Josh Triplett
The sample libabc includes functions to get a "thing", as a sample sub-object of the overall library context. Each "thing" has a reference to the parent library context, and a function to return that reference. Given that, abc_thing_new_from_string should call abc_ref, and abc_thing_unref should c