Fixing out-of-tree build after adding dependency to config.status.
[strongswan.git] / src / libhydra / hydra.h
index acbaa01..8670f39 100644 (file)
@@ -16,6 +16,9 @@
 /**
  * @defgroup libhydra libhydra
  *
+ * @defgroup attributes attributes
+ * @ingroup libhydra
+ *
  * @defgroup hplugins plugins
  * @ingroup libhydra
  *
 #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;
+
+       /**
+        * name of the daemon that initialized the library
+        */
+       const char *daemon;
+};
+
+/**
+ * The single instance of hydra_t.
+ *
+ * Set between calls to libhydra_init() and libhydra_deinit() calls.
+ */
+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.