Re: [systemd-devel] libabc, sub-objects, and reference counting

2014-12-08 Thread Josh Triplett
On Mon, Dec 08, 2014 at 05:09:17PM +0100, David Herrmann wrote: > On Sun, Dec 7, 2014 at 2:39 AM, 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 conte

Re: [systemd-devel] libabc, sub-objects, and reference counting

2014-12-08 Thread David Herrmann
Hi On Sun, Dec 7, 2014 at 2:39 AM, 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, shouldn't

[systemd-devel] libabc, sub-objects, and reference counting

2014-12-06 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, shouldn't abc_thing_new_from_string call abc_ref, and abc_thing_unref call