Remove the free assumption from libab_ref.

This commit is contained in:
2018-04-21 17:05:51 -07:00
parent 5d3130d39d
commit d096e2155c
3 changed files with 11 additions and 2 deletions

View File

@@ -79,6 +79,11 @@ void libab_ref_free(libab_ref* ref);
* Copies this reference, thereby increasing the reference count.
*/
void libab_ref_copy(const libab_ref* ref, libab_ref* into);
/**
* Function that can be passed in to refcount to simply use free
* when the refcount reaches 0.
*/
void libab_ref_data_free(void*);
/**
* Gets the value of the reference.
*/