capability API to allow plugin-controlled capability set

This commit is contained in:
Martin Willi
2008-08-28 16:27:48 +00:00
parent dc98e50153
commit e609b1cda2
6 changed files with 51 additions and 35 deletions
+2
View File
@@ -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 */
+5
View File
@@ -108,6 +108,11 @@ struct library_t {
* various settings loaded from settings file
*/
settings_t *settings;
/**
* is leak detective running?
*/
bool leak_detective;
};
/**
+1
View File
@@ -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;