usable without scenarios

This commit is contained in:
Martin Willi
2007-08-08 12:35:24 +00:00
parent 3dcf9dbd70
commit 7b7201bee6
10 changed files with 589 additions and 335 deletions
+5 -5
View File
@@ -19,10 +19,10 @@
#include <library.h>
#include <utils/iterator.h>
#include "iface.h"
typedef struct bridge_t bridge_t;
#include "iface.h"
/**
* @brief Interface in a guest, connected to a tap device on the host.
*/
@@ -41,15 +41,15 @@ struct bridge_t {
* @param iface interface to add
* @return TRUE if interface added
*/
bool (*add_iface)(bridge_t *this, iface_t *iface);
bool (*connect_iface)(bridge_t *this, iface_t *iface);
/**
* @brief Remove an interface from a bridge.
*
* @param iface interface to remove
* @return TRUE ifinterface removed
* @return TRUE if interface removed
*/
bool (*del_iface)(bridge_t *this, iface_t *iface);
bool (*disconnect_iface)(bridge_t *this, iface_t *iface);
/**
* @brief Create an iterator over all interfaces.