2018-11-22 03:17:29 +01:00
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_MEMDUMP_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_MEMDUMP_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
struct command;
|
2019-02-04 11:55:42 +01:00
|
|
|
struct htable;
|
|
|
|
struct strmap;
|
2018-11-22 03:17:29 +01:00
|
|
|
struct subd;
|
|
|
|
|
|
|
|
void opening_memleak_done(struct command *cmd, struct subd *leaker);
|
2018-11-22 03:17:29 +01:00
|
|
|
void peer_memleak_done(struct command *cmd, struct subd *leaker);
|
2019-02-04 11:55:42 +01:00
|
|
|
|
|
|
|
/* Remove any pointers inside this strmap (which is opaque to memleak). */
|
|
|
|
#define memleak_remove_strmap(memtable, strmap) \
|
|
|
|
memleak_remove_strmap_((memtable), tcon_unwrap(strmap))
|
|
|
|
void memleak_remove_strmap_(struct htable *memtable, const struct strmap *m);
|
|
|
|
|
2018-11-22 03:17:29 +01:00
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_MEMDUMP_H */
|