Add an external method to disable leak detective temporarly

This commit is contained in:
Martin Willi
2012-07-13 13:23:29 +02:00
parent 893c3a4ead
commit b46776aea1
2 changed files with 38 additions and 0 deletions
+8
View File
@@ -49,6 +49,14 @@ struct leak_detective_t {
*/
void (*usage)(leak_detective_t *this, FILE *out);
/**
* Enable/disable leak detective hooks.
*
* @param TRUE to enable, FALSE to disable
* @return state active before calling set_state
*/
bool (*set_state)(leak_detective_t *this, bool enabled);
/**
* Destroy a leak_detective instance.
*/