diff options
author | Tobias Brunner <tobias@strongswan.org> | 2009-07-02 16:41:40 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-10-12 15:03:26 +0200 |
commit | 0dbbd47fe719fadb31a1a278a9c7fb327f46be22 (patch) | |
tree | 4cbbbb4de60f48e7c276b6267cb454ec19b89b12 /src/dumm/guest.h | |
parent | 4542920a3eaedcebd08984cdb69d499f4eaeffe4 (diff) | |
download | strongswan-0dbbd47fe719fadb31a1a278a9c7fb327f46be22.tar.bz2 strongswan-0dbbd47fe719fadb31a1a278a9c7fb327f46be22.tar.xz |
Added support for multiple overlays to guests (replaces the template functionality).
Compared to a template an overlay is an arbitrary directory, not the
parent directory of a directory with the guest's name.
Diffstat (limited to 'src/dumm/guest.h')
-rw-r--r-- | src/dumm/guest.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/src/dumm/guest.h b/src/dumm/guest.h index 5f812f8eb..789f2310e 100644 --- a/src/dumm/guest.h +++ b/src/dumm/guest.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008 Tobias Brunner + * Copyright (C) 2008-2009 Tobias Brunner * Copyright (C) 2007 Martin Willi * Hochschule fuer Technik Rapperswil * @@ -134,12 +134,27 @@ struct guest_t { enumerator_t* (*create_iface_enumerator)(guest_t *this); /** - * Set the template COWFS overlay to use. + * Adds a COWFS overlay. The directory is created if it does not exist. * - * @param parent parent directory where template diff should point to - * @return FALSE if failed + * @param dir directory where overlay diff should point to + * @return FALSE, if failed */ - bool (*load_template)(guest_t *this, char *parent); + bool (*add_overlay)(guest_t *this, char *dir); + + /** + * Removes the specified COWFS overlay. + * + * @param dir directory where overlay diff points to + * @return FALSE, if no found + */ + bool (*del_overlay)(guest_t *this, char *dir); + + /** + * Removes the latest COWFS overlay. + * + * @return FALSE, if no overlay was found + */ + bool (*pop_overlay)(guest_t *this); /** * Execute a command on the guests mconsole. |