diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-03-24 17:40:15 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-03-24 18:53:10 +0100 |
commit | 567d3f14639f769b1b2a6ba4dd327ef0b4960c06 (patch) | |
tree | 16590335d50ddf5aedc5ca7ec2e3e98145e96b64 /src/libhydra/hydra.h | |
parent | 83218f0d6552019323b4e11c453632e121d3faa8 (diff) | |
download | strongswan-567d3f14639f769b1b2a6ba4dd327ef0b4960c06.tar.bz2 strongswan-567d3f14639f769b1b2a6ba4dd327ef0b4960c06.tar.xz |
Attributes moved from libstrongswan to libhydra.
The attribute_manager_t instance is now located on the new hydra object
instead of the lib object.
Diffstat (limited to 'src/libhydra/hydra.h')
-rw-r--r-- | src/libhydra/hydra.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/libhydra/hydra.h b/src/libhydra/hydra.h index acbaa01cc..2d8ef9cc1 100644 --- a/src/libhydra/hydra.h +++ b/src/libhydra/hydra.h @@ -16,6 +16,9 @@ /** * @defgroup libhydra libhydra * + * @defgroup attributes attributes + * @ingroup libhydra + * * @defgroup hplugins plugins * @ingroup libhydra * @@ -26,9 +29,29 @@ #ifndef HYDRA_H_ #define HYDRA_H_ +typedef struct hydra_t hydra_t; + +#include <attributes/attribute_manager.h> + #include <library.h> /** + * IKE Daemon support object. + */ +struct hydra_t { + /** + * manager for payload attributes + */ + attribute_manager_t *attributes; +}; + +/** + * The single instance of hydra_t. Set between calls to libhydra_init() and + * libhydra_deinit() calls. + */ +extern hydra_t *hydra; + +/** * Initialize libhydra. * @return FALSE if integrity check failed */ |