diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/skalibs/genset.h | 2 | ||||
-rw-r--r-- | src/include/skalibs/gensetdyn.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/include/skalibs/genset.h b/src/include/skalibs/genset.h index 9241d1a..fc14d24 100644 --- a/src/include/skalibs/genset.h +++ b/src/include/skalibs/genset.h @@ -27,6 +27,7 @@ extern int genset_delete (genset *, uint32_t) ; extern uint32_t genset_iter_nocancel (genset *, uint32_t, iterfunc_t_ref, void *) ; #define genset_iter(g, f, stuff) genset_iter_nocancel(g, (g)->max, f, stuff) extern int genset_iter_withcancel (genset *, iterfunc_t_ref, iterfunc_t_ref, void *) ; +extern void genset_deepfree (genset *, freefunc_t_ref) ; #define GENSETB_TYPE(type, size) struct { type storage[size] ; uint32_t freelist[size] ; genset info ; } #define GENSETB_init(type, g, size) GENSET_init(&(g)->info, type, (g)->storage, (g)->freelist, size) @@ -35,5 +36,6 @@ extern int genset_iter_withcancel (genset *, iterfunc_t_ref, iterfunc_t_ref, voi #define gensetb_delete(g, i) genset_delete(&(g)->info, i) #define gensetb_n(g) genset_n(&(g)->info) #define gensetb_iter(g, f, p) genset_iter(&(g)->info, f, p) +#define gensetb_deepfree(g, f) genset_deepfree(&(g)->info, f) #endif diff --git a/src/include/skalibs/gensetdyn.h b/src/include/skalibs/gensetdyn.h index f851ae7..c91a435 100644 --- a/src/include/skalibs/gensetdyn.h +++ b/src/include/skalibs/gensetdyn.h @@ -29,6 +29,7 @@ extern void gensetdyn_init (gensetdyn *, uint32_t, uint32_t, uint32_t, uint32_t) extern int gensetdyn_ready (gensetdyn *, uint32_t) ; #define gensetdyn_readyplus(x, n) gensetdyn_ready(x, gensetdyn_n(x) + (n)) extern void gensetdyn_free (gensetdyn *) ; +extern void gensetdyn_deepfree (gensetdyn *, freefunc_t_ref) ; extern int gensetdyn_new (gensetdyn *, uint32_t *) ; extern int gensetdyn_delete (gensetdyn *, uint32_t) ; |