capability API to allow plugin-controlled capability set
This commit is contained in:
@@ -86,6 +86,8 @@ void library_init(char *settings)
|
||||
private_library_t *this = malloc_thing(private_library_t);
|
||||
lib = &this->public;
|
||||
|
||||
lib->leak_detective = FALSE;
|
||||
|
||||
#ifdef LEAK_DETECTIVE
|
||||
this->detective = leak_detective_create();
|
||||
#endif /* LEAK_DETECTIVE */
|
||||
|
||||
@@ -108,6 +108,11 @@ struct library_t {
|
||||
* various settings loaded from settings file
|
||||
*/
|
||||
settings_t *settings;
|
||||
|
||||
/**
|
||||
* is leak detective running?
|
||||
*/
|
||||
bool leak_detective;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -560,6 +560,7 @@ leak_detective_t *leak_detective_create()
|
||||
|
||||
if (getenv("LEAK_DETECTIVE_DISABLE") == NULL)
|
||||
{
|
||||
lib->leak_detective = TRUE;
|
||||
install_hooks();
|
||||
}
|
||||
return &this->public;
|
||||
|
||||
Reference in New Issue
Block a user