Store the name of the daemon that initialized libhydra to load daemon-specific settings.

This commit is contained in:
Tobias Brunner
2010-04-06 12:47:40 +02:00
parent e82b5755be
commit facf887253
4 changed files with 14 additions and 4 deletions
+9 -1
View File
@@ -44,6 +44,11 @@ struct hydra_t {
* manager for payload attributes
*/
attribute_manager_t *attributes;
/**
* name of the daemon that initialized the library
*/
const char *daemon;
};
/**
@@ -56,9 +61,12 @@ extern hydra_t *hydra;
/**
* Initialize libhydra.
*
* The daemon's name is used to load daemon-specific settings.
*
* @param daemon name of the daemon that initializes the library
* @return FALSE if integrity check failed
*/
bool libhydra_init();
bool libhydra_init(const char *daemon);
/**
* Deinitialize libhydra.