2019-06-25 14:52:38 +02:00
|
|
|
#ifndef DC_REFABLE_H
|
|
|
|
#define DC_REFABLE_H
|
|
|
|
|
|
|
|
typedef void (*dc_cleanup_t)(void *);
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int ref;
|
|
|
|
dc_cleanup_t cleanup;
|
2019-07-20 14:43:37 +02:00
|
|
|
int debug;
|
2019-06-25 14:52:38 +02:00
|
|
|
} dc_refable_t;
|
|
|
|
|
|
|
|
void *dc_ref(void *);
|
|
|
|
void dc_unref(void *);
|
|
|
|
|
2019-07-20 14:43:37 +02:00
|
|
|
void dc_ref_debug(void *);
|
|
|
|
|
2019-06-25 14:52:38 +02:00
|
|
|
#endif
|