diff options
Diffstat (limited to 'src/libcharon/daemon.h')
-rw-r--r-- | src/libcharon/daemon.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libcharon/daemon.h b/src/libcharon/daemon.h index ad9ab4cd2..5ea3f45bf 100644 --- a/src/libcharon/daemon.h +++ b/src/libcharon/daemon.h @@ -264,6 +264,11 @@ struct daemon_t { gid_t gid; /** + * Name of the binary that uses the library (used for settings etc.) + */ + const char *name; + + /** * Do not drop a given capability after initialization. * * Some plugins might need additional capabilites. They tell the daemon @@ -311,9 +316,10 @@ extern daemon_t *charon; * This function initializes the bus, listeners can be registered before * calling initialize(). * + * @param name name of the binary that uses the library * @return FALSE if integrity check failed */ -bool libcharon_init(); +bool libcharon_init(const char *name); /** * Deinitialize libcharon and destroy the "charon" instance of daemon_t. |