summaryrefslogtreecommitdiff
path: root/src/dumm/mconsole.h
diff options
context:
space:
mode:
authorRene Mayrhofer <rene@mayrhofer.eu.org>2008-10-29 11:11:01 +0000
committerRene Mayrhofer <rene@mayrhofer.eu.org>2008-10-29 11:11:01 +0000
commit8b80ab5a6950ce6515f477624794defd7531642a (patch)
treeaa8303f3806c5615fbeafc4dc82febe3cd7c24dc /src/dumm/mconsole.h
parentdb67c87db3c9089ea8d2e14f617bf3d9e2af261f (diff)
downloadvyos-strongswan-8b80ab5a6950ce6515f477624794defd7531642a.tar.gz
vyos-strongswan-8b80ab5a6950ce6515f477624794defd7531642a.zip
[svn-upgrade] Integrating new upstream version, strongswan (4.2.8)
Diffstat (limited to 'src/dumm/mconsole.h')
-rw-r--r--src/dumm/mconsole.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dumm/mconsole.h b/src/dumm/mconsole.h
index 55ce15dda..329c40c06 100644
--- a/src/dumm/mconsole.h
+++ b/src/dumm/mconsole.h
@@ -43,6 +43,17 @@ struct mconsole_t {
bool (*del_iface)(mconsole_t *this, char *guest);
/**
+ * Execute a command in the UML host.
+ *
+ * @param cb callback function to invoke for each line
+ * @param data data to pass to callback
+ * @param cmd command to invoke
+ * @return return value of command
+ */
+ int (*exec)(mconsole_t *this, void(*cb)(void*,char*,size_t), void *data,
+ char *cmd);
+
+ /**
* @brief Destroy the mconsole instance
*/
void (*destroy) (mconsole_t *this);