ncdc/libdc/include/dc/refable.h

18 lines
251 B
C
Raw Normal View History

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;
int debug;
2019-06-25 14:52:38 +02:00
} dc_refable_t;
void *dc_ref(void *);
void dc_unref(void *);
void dc_ref_debug(void *);
2019-06-25 14:52:38 +02:00
#endif