diff options
author | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2008-07-09 21:02:41 +0000 |
---|---|---|
committer | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2008-07-09 21:02:41 +0000 |
commit | db67c87db3c9089ea8d2e14f617bf3d9e2af261f (patch) | |
tree | 665c0caea83d34c11c1517c4c57137bb58cba6fb /src/dumm/dumm.h | |
parent | 1c088a8b6237ec67f63c23f97a0f2dc4e99af869 (diff) | |
download | vyos-strongswan-db67c87db3c9089ea8d2e14f617bf3d9e2af261f.tar.gz vyos-strongswan-db67c87db3c9089ea8d2e14f617bf3d9e2af261f.zip |
[svn-upgrade] Integrating new upstream version, strongswan (4.2.4)
Diffstat (limited to 'src/dumm/dumm.h')
-rw-r--r-- | src/dumm/dumm.h | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/src/dumm/dumm.h b/src/dumm/dumm.h index 5414f9993..6abf4fc92 100644 --- a/src/dumm/dumm.h +++ b/src/dumm/dumm.h @@ -19,7 +19,7 @@ #include <signal.h> #include <library.h> -#include <utils/linked_list.h> +#include <utils/enumerator.h> #include "guest.h" #include "bridge.h" @@ -30,8 +30,6 @@ typedef struct dumm_t dumm_t; * @brief dumm - Dynamic Uml Mesh Modeler * * Controls a group of UML guests and their networks. - * Dumm catches SIGCHD and SIGHUP to trace UML child processes and the FUSE - * filesystem. Do not overwrite these signal handlers! */ struct dumm_t { @@ -48,11 +46,18 @@ struct dumm_t { char *master, int mem); /** - * @brief Create an iterator over all guests. + * @brief Create an enumerator over all guests. * - * @return iteraotor over guest_t's + * @return enumerator over guest_t's */ - iterator_t* (*create_guest_iterator) (dumm_t *this); + enumerator_t* (*create_guest_enumerator) (dumm_t *this); + + /** + * @brief Delete a guest from disk. + * + * @param guest guest to destroy + */ + void (*delete_guest) (dumm_t *this, guest_t *guest); /** * @brief Create a new bridge. @@ -63,11 +68,18 @@ struct dumm_t { bridge_t* (*create_bridge)(dumm_t *this, char *name); /** - * @brief Create an iterator over all bridges. + * @brief Create an enumerator over all bridges. + * + * @return enumerator over bridge_t's + */ + enumerator_t* (*create_bridge_enumerator)(dumm_t *this); + + /** + * @brief Delete a bridge. * - * @return iterator over bridge_t's + * @param bridge bridge to destroy */ - iterator_t* (*create_bridge_iterator)(dumm_t *this); + void (*delete_bridge) (dumm_t *this, bridge_t *bridge); /** * @brief Loads a template, create a new one if it does not exist. @@ -86,7 +98,7 @@ struct dumm_t { /** * @brief Create a group of UML hosts and networks. * - * @param dir directory to create guests/load from + * @param dir directory to create guests/load from, NULL for cwd * @return created UML group, or NULL if failed. */ dumm_t *dumm_create(char *dir); |