123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- #define LEAKED_MASK 0x00000001
- #define PARTIAL_MASK 0x00000002
- #define SCANNED_MASK 0x00000001
- struct _lub_heap_node
- {
- lub_heap_context_t *_context;
- lub_heap_node_t *_next;
- lub_heap_node_t *prev;
- lub_bintree_node_t bt_node;
- };
- typedef struct _lub_heap_node_key lub_heap_node_key_t;
- struct _lub_heap_node_key
- {
- const lub_heap_node_t *node;
- };
- extern size_t
- lub_heap_node__get_instanceSize(void);
- extern void
- lub_heap_node_clear(lub_heap_node_t *instance,
- void *arg);
- extern void
- lub_heap_foreach_node(void (*fn)(lub_heap_node_t *, void*),void *arg);
- extern void
- lub_heap_scan_memory(const void *mem,
- size_t size);
- extern lub_heap_node_t *
- lub_heap_node_from_start_of_block_ptr(char *ptr);
- extern void
- lub_heap_node_initialise(void);
- extern char *
- lub_heap_node__get_ptr(
- const lub_heap_node_t *instance
- );
- extern size_t
- lub_heap_node__get_size(
- const lub_heap_node_t *instance
- );
- extern size_t
- lub_heap_node__get_overhead(
- const lub_heap_node_t *instance
- );
- extern void
- lub_heap_node_fini(
- lub_heap_node_t *instance
- );
- extern void
- lub_heap_node_init(
- lub_heap_node_t * instance,
- lub_heap_context_t * context
- );
- extern lub_bintree_compare_fn lub_heap_node_compare;
- extern lub_bintree_getkey_fn lub_heap_node_getkey;
-
- extern bool_t
- lub_heap_node__get_leaked(
- const lub_heap_node_t *instance
- );
- extern bool_t
- lub_heap_node__get_partial(
- const lub_heap_node_t *instance
- );
-
- extern bool_t
- lub_heap_node__get_scanned(
- const lub_heap_node_t *instance
- );
- extern void
- lub_heap_node__set_leaked(
- lub_heap_node_t *instance,
- bool_t value
- );
- extern void
- lub_heap_node__set_partial(
- lub_heap_node_t *instance,
- bool_t value
- );
- extern void
- lub_heap_node__set_scanned(
- lub_heap_node_t *instance,
- bool_t value
- );
- extern lub_heap_context_t *
- lub_heap_node__get_context(
- const lub_heap_node_t *instance
- );
- extern void
- lub_heap_node__set_context(
- lub_heap_node_t *instance,
- lub_heap_context_t *context
- );
-
- extern lub_heap_node_t *
- lub_heap_node__get_next(
- const lub_heap_node_t *instance
- );
- extern void
- lub_heap_node__set_next(
- lub_heap_node_t *instance,
- lub_heap_node_t *context
- );
|