diff options
Diffstat (limited to 'src/til_setup.h')
-rw-r--r-- | src/til_setup.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/til_setup.h b/src/til_setup.h index 16380d5..8cc7a88 100644 --- a/src/til_setup.h +++ b/src/til_setup.h @@ -4,10 +4,12 @@ typedef struct til_setup_t til_setup_t; struct til_setup_t { - void (*free)(til_setup_t *setup); + unsigned refcount; + void (*free)(til_setup_t *setup); }; void * til_setup_new(size_t size, void (*free_func)(til_setup_t *setup)); +void * til_setup_ref(til_setup_t *setup); void * til_setup_free(til_setup_t *setup); #endif |