2 * Copyright (C) 2010 Tobias Brunner
3 * Hochschule fuer Technik Rapperswil
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 * @defgroup libhydra libhydra
19 * @defgroup attributes attributes
22 * @defgroup hkernel kernel
25 * @defgroup hplugins plugins
28 * @addtogroup libhydra
35 typedef struct hydra_t hydra_t
;
37 #include <attributes/attribute_manager.h>
38 #include <kernel/kernel_interface.h>
43 * IKE Daemon support object.
48 * manager for payload attributes
50 attribute_manager_t
*attributes
;
53 * kernel interface to communicate with kernel
55 kernel_interface_t
*kernel_interface
;
58 * name of the daemon that initialized the library
64 * The single instance of hydra_t.
66 * Set between calls to libhydra_init() and libhydra_deinit() calls.
68 extern hydra_t
*hydra
;
71 * Initialize libhydra.
73 * The daemon's name is used to load daemon-specific settings.
75 * libhydra_init() may be called multiple times in a single process, but each
76 * caller should call libhydra_deinit() for each call to libhydra_init().
78 * @param daemon name of the daemon that initializes the library
79 * @return FALSE if integrity check failed
81 bool libhydra_init(const char *daemon
);
84 * Deinitialize libhydra.
86 void libhydra_deinit();
88 #endif /** HYDRA_H_ @}*/