commit | fe8daad4c8e0b58bbcd9168039c277399636448d | [log] [tgz] |
---|---|---|
author | Josh Triplett <josh@joshtriplett.org> | Mon Dec 08 13:12:12 2014 -0800 |
committer | Kay Sievers <kay@vrfy.org> | Tue Feb 03 23:09:21 2015 +0100 |
tree | 34488079ede5b8192decac6e48ed0db2412df4b6 | |
parent | 3ee73a878ae076016bc93216e9989cec735e96f3 [diff] |
libabc: Make things hold a reference to their context 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 call abc_unref when freeing a thing.